Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.MATTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ExternData.Examples.MATTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.MATTest") translateModel(ExternData.Examples.MATTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.MATTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001724/0.001724, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001914/0.001914, allocations: 195.1 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo): time 0.1626/0.1626, allocations: 2.93 MB / 293.3 MB, free: 3.141 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 59.91 kB / 354.7 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1085, allocations: 50.34 MB / 405 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.003888/0.1125, allocations: 1.474 MB / 406.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.1144, allocations: 1.272 MB / 407.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.734e-05/0.1145, allocations: 0 / 407.7 MB, free: 14.6 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo:141:3-163:14:writable] Warning: Pure function 'ExternData.MATFile' contains a call to impure function 'ExternData.Types.ExternMATFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0002885/0.1148, allocations: 35.84 kB / 407.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001015/0.1149, allocations: 19.86 kB / 407.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003035/0.1152, allocations: 91.59 kB / 407.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001176/0.1153, allocations: 55.89 kB / 407.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.94e-05/0.1154, allocations: 11.94 kB / 408 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.106e-05/0.1155, allocations: 35.84 kB / 408 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001527/0.1156, allocations: 19.88 kB / 408 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.897e-05/0.1157, allocations: 4 kB / 408 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001756/0.1159, allocations: 99.84 kB / 408.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.076e-05/0.1159, allocations: 7.984 kB / 408.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.297e-05/0.116, allocations: 27.86 kB / 408.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002331/0.1162, allocations: 120 kB / 408.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1162, allocations: 0 / 408.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1162, allocations: 4 kB / 408.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1162, allocations: 0 / 408.3 MB, free: 14.08 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004907/0.1167, allocations: 389.1 kB / 408.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.1168, allocations: 15.89 kB / 408.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.97e-05/0.1168, allocations: 4.844 kB / 408.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001766/0.117, allocations: 184.3 kB / 408.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.347e-06/0.117, allocations: 4.375 kB / 408.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.46e-05/0.1171, allocations: 8.297 kB / 408.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001258/0.1172, allocations: 62 kB / 408.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.582e-06/0.1172, allocations: 4 kB / 408.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.1172, allocations: 0 / 408.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.1172, allocations: 0 / 408.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.809e-05/0.1173, allocations: 35.97 kB / 409 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001732/0.1175, allocations: 177.5 kB / 409.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.702e-05/0.1176, allocations: 50.56 kB / 409.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.975e-05/0.1176, allocations: 44.83 kB / 409.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.037e-05/0.1177, allocations: 4 kB / 409.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001957/0.1179, allocations: 113 kB / 409.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.232e-06/0.1179, allocations: 0 / 409.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003454/0.1182, allocations: 187.2 kB / 409.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/0.1183, allocations: 89.05 kB / 409.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.998e-05/0.1184, allocations: 117.8 kB / 409.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.1184, allocations: 25.7 kB / 409.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.74e-05/0.1184, allocations: 88.52 kB / 409.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.076e-05/0.1185, allocations: 23.88 kB / 409.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.082e-05/0.1185, allocations: 21.72 kB / 409.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.1187, allocations: 322.8 kB / 410.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.708e-05/0.1187, allocations: 31.92 kB / 410.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.995e-05/0.1188, allocations: 24 kB / 410.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001349/0.1189, allocations: 120.2 kB / 410.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.1189, allocations: 0 / 410.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002341/0.1191, allocations: 163.2 kB / 410.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.713e-05/0.1192, allocations: 43.72 kB / 410.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.1192, allocations: 0 / 410.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.1192, allocations: 0 / 410.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.785e-05/0.1193, allocations: 4 kB / 410.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.1193, allocations: 0 / 410.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.135e-05/0.1194, allocations: 11.91 kB / 410.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.1194, allocations: 4 kB / 410.6 MB, free: 11.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000167/0.1195, allocations: 151.5 kB / 410.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.304e-05/0.1196, allocations: 7.938 kB / 410.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.223e-05/0.1196, allocations: 8.516 kB / 410.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.1196, allocations: 15.84 kB / 410.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1196, allocations: 0 / 410.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1196, allocations: 0 / 410.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001523/0.1198, allocations: 181.5 kB / 410.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.1198, allocations: 4 kB / 411 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.267e-05/0.1198, allocations: 7.922 kB / 411 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.1198, allocations: 0 / 411 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.1199, allocations: 4 kB / 411 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1199, allocations: 0 / 411 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1199, allocations: 96 / 411 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002647/0.1201, allocations: 214.6 kB / 411.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.538e-05/0.1202, allocations: 88.98 kB / 411.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.615e-05/0.1202, allocations: 4 kB / 411.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.666e-05/0.1203, allocations: 3.984 kB / 411.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.78e-05/0.1203, allocations: 4 kB / 411.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.1203, allocations: 8 kB / 411.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.64e-05/0.1204, allocations: 99.2 kB / 411.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1204, allocations: 8 kB / 411.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002399/0.1207, allocations: 36 kB / 411.4 MB, free: 10.54 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006212/0.1213, allocations: 261.9 kB / 411.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002286/0.1215, allocations: 167.4 kB / 411.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1215, allocations: 0 / 411.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001137/0.1217, allocations: 123.3 kB / 412 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001852/0.1218, allocations: 15.92 kB / 412 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003806/0.1222, allocations: 189.4 kB / 412.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.1226, allocations: 0.6961 MB / 412.9 MB, free: 9.078 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.553e-05/0.1226, allocations: 7.984 kB / 412.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.951e-05/0.1226, allocations: 7.438 kB / 412.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1226, allocations: 0 / 412.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of Templates: time 0.004031/0.1267, allocations: 1.452 MB / 414.3 MB, free: 7.621 MB / 350.1 MB make -j1 -f ExternData_ExternData.Examples.MATTest.makefile (rm -f ExternData_ExternData.Examples.MATTest.pipe ; mkfifo ExternData_ExternData.Examples.MATTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.MATTest.pipe >> ../files/ExternData_ExternData.Examples.MATTest.sim & ./ExternData_ExternData.Examples.MATTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternData_ExternData.Examples.MATTest.pipe 2>&1)