Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004527/0.004527, allocations: 364.4 kB / 15.96 MB, free: 6.199 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.066/4.066, allocations: 388.9 MB / 405.6 MB, free: 9.582 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003581/0.003581, allocations: 239.1 kB / 451 MB, free: 145 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5687/0.5687, allocations: 80.02 MB / 0.5627 GB, free: 19.77 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004759/0.0004761, allocations: 12 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09846/0.09896, allocations: 54.87 MB / 0.6801 GB, free: 41.67 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12): time 0.429/0.5281, allocations: 86.66 MB / 0.7647 GB, free: 424 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0747/0.6028, allocations: 35.13 MB / 0.799 GB, free: 2.305 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003958/0.6069, allocations: 99.25 kB / 0.7991 GB, free: 2.207 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004908/0.6118, allocations: 0.9478 MB / 0.8 GB, free: 1.254 MB / 378.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.02884/0.6407, allocations: 6.659 MB / 0.8065 GB, free: 10.59 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03032/0.6711, allocations: 7.085 MB / 0.8135 GB, free: 3.52 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01458/0.6857, allocations: 7.875 MB / 0.8212 GB, free: 11.62 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004222/0.69, allocations: 1.232 MB / 0.8224 GB, free: 10.38 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008563/0.6986, allocations: 2.144 MB / 0.8245 GB, free: 8.223 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07433/0.773, allocations: 22.12 MB / 0.8461 GB, free: 2.086 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001142/0.7742, allocations: 108 kB / 0.8462 GB, free: 1.98 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03133/0.8056, allocations: 9.621 MB / 0.8556 GB, free: 8.348 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002179/0.8078, allocations: 0.8061 MB / 0.8563 GB, free: 7.539 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001632/0.8095, allocations: 0.5161 MB / 0.8568 GB, free: 7.016 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01753/0.827, allocations: 6.517 MB / 0.8632 GB, free: 496 kB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.478e-06/0.8271, allocations: 7.938 kB / 0.8632 GB, free: 488 kB / 442.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.8271, allocations: 0 / 0.8632 GB, free: 488 kB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001382/0.8273, allocations: 4 kB / 0.8632 GB, free: 484 kB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01476/0.8421, allocations: 3.604 MB / 0.8667 GB, free: 12.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.8421, allocations: 8.031 kB / 0.8667 GB, free: 12.79 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008521/0.8507, allocations: 0.8322 MB / 0.8676 GB, free: 11.96 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01997/0.8707, allocations: 6.539 MB / 0.8739 GB, free: 5.355 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004166/0.8712, allocations: 183.7 kB / 0.8741 GB, free: 5.176 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008706/0.872, allocations: 199.9 kB / 0.8743 GB, free: 4.98 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01312/0.8852, allocations: 3.503 MB / 0.8777 GB, free: 1.316 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.468e-05/0.8853, allocations: 11.92 kB / 0.8777 GB, free: 1.305 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003762/0.8857, allocations: 83.97 kB / 0.8778 GB, free: 1.223 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004395/0.8862, allocations: 191.5 kB / 0.878 GB, free: 1.035 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01402/0.9002, allocations: 3.277 MB / 0.8812 GB, free: 13.75 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03347/0.9337, allocations: 14.96 MB / 0.8958 GB, free: 13.54 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009966/0.9438, allocations: 2.302 MB / 0.8981 GB, free: 11.23 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003828/0.9476, allocations: 1.133 MB / 0.8992 GB, free: 10.1 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3758/1.324, allocations: 19.03 MB / 0.9178 GB, free: 170.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007689/1.331, allocations: 1.634 MB / 0.9193 GB, free: 170.2 MB / 490.7 MB Notification: Performance of pre-optimization done (n=155): time 8.375e-06/1.331, allocations: 0 / 0.9193 GB, free: 170.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=171): time 0.03592/1.367, allocations: 8.06 MB / 0.9272 GB, free: 167.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/1.367, allocations: 229.5 kB / 0.9274 GB, free: 167.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003455/1.371, allocations: 1.566 MB / 0.929 GB, free: 166.9 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004992/1.371, allocations: 57.64 kB / 0.929 GB, free: 166.9 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001063/1.373, allocations: 1.009 MB / 0.93 GB, free: 166.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009769/1.374, allocations: 0.5818 MB / 0.9306 GB, free: 165.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002344/1.374, allocations: 41.25 kB / 0.9306 GB, free: 165.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001731/1.374, allocations: 390.5 kB / 0.931 GB, free: 165.3 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004005/1.378, allocations: 1.145 MB / 0.9321 GB, free: 164.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004611/1.383, allocations: 1.673 MB / 0.9337 GB, free: 163.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004714/1.387, allocations: 1.385 MB / 0.9351 GB, free: 163.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-05/1.388, allocations: 4.844 kB / 0.9351 GB, free: 163.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01351/1.401, allocations: 3.945 MB / 0.9389 GB, free: 161.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003613/1.401, allocations: 0.5536 MB / 0.9395 GB, free: 160.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.266e-05/1.402, allocations: 23.12 kB / 0.9395 GB, free: 160.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02657/1.428, allocations: 2.986 MB / 0.9424 GB, free: 159.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00233/1.43, allocations: 324.5 kB / 0.9427 GB, free: 159.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009909/1.44, allocations: 3.486 MB / 0.9461 GB, free: 156.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004102/1.445, allocations: 251.5 kB / 0.9464 GB, free: 156.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006858/1.445, allocations: 110.3 kB / 0.9465 GB, free: 156.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/1.445, allocations: 0 / 0.9465 GB, free: 156.2 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01196/1.457, allocations: 3.569 MB / 0.95 GB, free: 152.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-05/1.457, allocations: 16 kB / 0.95 GB, free: 152.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01252/1.47, allocations: 1.788 MB / 0.9517 GB, free: 150.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002688/1.473, allocations: 367.4 kB / 0.9521 GB, free: 150.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007004/1.48, allocations: 2.771 MB / 0.9548 GB, free: 147.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003753/1.484, allocations: 259.6 kB / 0.955 GB, free: 147.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005917/1.484, allocations: 95.98 kB / 0.9551 GB, free: 147.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,pipe1.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.002079/1.486, allocations: 0.7272 MB / 0.9558 GB, free: 146.6 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006871/1.487, allocations: 205.5 kB / 0.956 GB, free: 146.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01574/1.503, allocations: 7.734 MB / 0.9636 GB, free: 138.5 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01309/1.516, allocations: 6.639 MB / 0.9701 GB, free: 131.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.375e-05/1.516, allocations: 11.92 kB / 0.9701 GB, free: 131.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002399/1.518, allocations: 0.7254 MB / 0.9708 GB, free: 131 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001007/1.52, allocations: 55.94 kB / 0.9708 GB, free: 130.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003451/1.523, allocations: 239.5 kB / 0.9711 GB, free: 130.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006277/1.524, allocations: 153.8 kB / 0.9712 GB, free: 130.6 MB / 490.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0128/1.537, allocations: 4.817 MB / 0.9759 GB, free: 125.7 MB / 490.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.015/1.552, allocations: 6.891 MB / 0.9827 GB, free: 118.6 MB / 490.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00454/1.556, allocations: 2.247 MB / 0.9848 GB, free: 116.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0025/1.559, allocations: 1.151 MB / 0.986 GB, free: 115.2 MB / 490.7 MB Notification: Performance of Backend: time 1.292e-06/1.559, allocations: 0 / 0.986 GB, free: 115.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02681/1.586, allocations: 6.203 MB / 0.992 GB, free: 109.5 MB / 490.7 MB Notification: Performance of SimCode: time 0.01576/1.601, allocations: 7.194 MB / 0.9991 GB, free: 102.3 MB / 490.7 MB Notification: Performance of Templates: time 0.2641/1.866, allocations: 99.59 MB / 1.096 GB, free: 2.836 MB / 490.7 MB