Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.SeriesPipes13,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.SeriesPipes13") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004242/0.004241, allocations: 370.9 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 3.934/3.934, allocations: 388.9 MB / 405.6 MB, free: 10.27 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.003486/0.003486, allocations: 239 kB / 451 MB, free: 145.1 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.5067/0.5067, allocations: 80.02 MB / 0.5627 GB, free: 19.85 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004653/0.0004655, allocations: 8 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09477/0.09525, allocations: 54.87 MB / 0.6801 GB, free: 41.67 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13): time 0.4514/0.5468, allocations: 86.65 MB / 0.7647 GB, free: 416 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.07152/0.6183, allocations: 35.11 MB / 0.799 GB, free: 2.289 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003778/0.6222, allocations: 99.25 kB / 0.7991 GB, free: 2.191 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004726/0.627, allocations: 0.9478 MB / 0.8 GB, free: 1.238 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.02911/0.6561, allocations: 6.669 MB / 0.8065 GB, free: 10.56 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02943/0.6856, allocations: 7.094 MB / 0.8135 GB, free: 3.492 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01431/0.6999, allocations: 7.875 MB / 0.8212 GB, free: 11.6 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003738/0.7037, allocations: 1.224 MB / 0.8224 GB, free: 10.36 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007174/0.7109, allocations: 2.14 MB / 0.8244 GB, free: 8.211 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05617/0.7672, allocations: 22.12 MB / 0.8461 GB, free: 2.07 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001084/0.7683, allocations: 108 kB / 0.8462 GB, free: 1.965 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03075/0.7991, allocations: 9.613 MB / 0.8555 GB, free: 8.34 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002107/0.8013, allocations: 0.8178 MB / 0.8563 GB, free: 7.52 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001468/0.8028, allocations: 0.516 MB / 0.8568 GB, free: 6.996 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0175/0.8203, allocations: 6.521 MB / 0.8632 GB, free: 472 kB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/0.8204, allocations: 0 / 0.8632 GB, free: 472 kB / 442.7 MB Notification: Performance of FrontEnd: time 6.523e-06/0.8204, allocations: 0 / 0.8632 GB, free: 472 kB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000149/0.8206, allocations: 3.938 kB / 0.8632 GB, free: 468 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.0149/0.8355, allocations: 3.604 MB / 0.8667 GB, free: 12.79 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/0.8356, allocations: 8.828 kB / 0.8667 GB, free: 12.78 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008529/0.8441, allocations: 0.84 MB / 0.8676 GB, free: 11.93 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01888/0.863, allocations: 6.547 MB / 0.874 GB, free: 5.324 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003758/0.8635, allocations: 175.7 kB / 0.8741 GB, free: 5.152 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007662/0.8643, allocations: 203.9 kB / 0.8743 GB, free: 4.953 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01298/0.8772, allocations: 3.507 MB / 0.8777 GB, free: 1.285 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-05/0.8774, allocations: 3.938 kB / 0.8778 GB, free: 1.281 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003685/0.8778, allocations: 87.97 kB / 0.8778 GB, free: 1.195 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004285/0.8782, allocations: 183.5 kB / 0.878 GB, free: 1.016 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01356/0.8918, allocations: 3.285 MB / 0.8812 GB, free: 13.73 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.03251/0.9243, allocations: 14.95 MB / 0.8958 GB, free: 13.52 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009801/0.9342, allocations: 2.302 MB / 0.8981 GB, free: 11.21 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003786/0.938, allocations: 1.133 MB / 0.8992 GB, free: 10.07 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4579/1.396, allocations: 19.03 MB / 0.9178 GB, free: 170.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007244/1.403, allocations: 1.627 MB / 0.9193 GB, free: 170.1 MB / 490.7 MB Notification: Performance of pre-optimization done (n=155): time 7.093e-06/1.403, allocations: 3.875 kB / 0.9193 GB, free: 170.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=171): time 0.03306/1.436, allocations: 8.057 MB / 0.9272 GB, free: 167.7 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.999e-05/1.437, allocations: 234.2 kB / 0.9274 GB, free: 167.4 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003164/1.44, allocations: 1.568 MB / 0.929 GB, free: 166.9 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004611/1.44, allocations: 57.42 kB / 0.929 GB, free: 166.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001013/1.441, allocations: 0.9974 MB / 0.93 GB, free: 166 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008536/1.442, allocations: 0.5865 MB / 0.9306 GB, free: 165.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002069/1.442, allocations: 40.94 kB / 0.9306 GB, free: 165.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001573/1.443, allocations: 390.5 kB / 0.931 GB, free: 165.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003777/1.446, allocations: 1.142 MB / 0.9321 GB, free: 164.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004294/1.451, allocations: 1.674 MB / 0.9337 GB, free: 163.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004464/1.455, allocations: 1.389 MB / 0.9351 GB, free: 163.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.717e-05/1.455, allocations: 3.75 kB / 0.9351 GB, free: 163.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01188/1.467, allocations: 3.943 MB / 0.9389 GB, free: 161.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000365/1.468, allocations: 0.5618 MB / 0.9395 GB, free: 160.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.936e-05/1.468, allocations: 19.09 kB / 0.9395 GB, free: 160.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02603/1.494, allocations: 2.979 MB / 0.9424 GB, free: 159.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002277/1.496, allocations: 326.7 kB / 0.9427 GB, free: 159.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009112/1.505, allocations: 3.481 MB / 0.9461 GB, free: 156.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003601/1.509, allocations: 264.7 kB / 0.9464 GB, free: 156.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003133/1.509, allocations: 104 kB / 0.9465 GB, free: 156.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/1.509, allocations: 4 kB / 0.9465 GB, free: 156.1 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01014/1.519, allocations: 3.557 MB / 0.95 GB, free: 152.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-05/1.519, allocations: 16 kB / 0.95 GB, free: 152.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01191/1.531, allocations: 1.788 MB / 0.9517 GB, free: 150.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002531/1.534, allocations: 375.4 kB / 0.9521 GB, free: 150.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006444/1.54, allocations: 2.771 MB / 0.9548 GB, free: 147.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003407/1.544, allocations: 261.2 kB / 0.955 GB, free: 147.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003014/1.544, allocations: 104 kB / 0.9551 GB, free: 147.2 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.001677/1.546, allocations: 0.7243 MB / 0.9558 GB, free: 146.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000522/1.546, allocations: 201.5 kB / 0.956 GB, free: 146.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0146/1.561, allocations: 7.74 MB / 0.9636 GB, free: 138.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0118/1.573, allocations: 6.639 MB / 0.9701 GB, free: 131.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.424e-05/1.573, allocations: 0 / 0.9701 GB, free: 131.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001835/1.575, allocations: 0.722 MB / 0.9708 GB, free: 130.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000765/1.576, allocations: 55.94 kB / 0.9708 GB, free: 130.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00311/1.579, allocations: 251.5 kB / 0.9711 GB, free: 130.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005269/1.579, allocations: 141.8 kB / 0.9712 GB, free: 130.5 MB / 490.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01195/1.591, allocations: 4.827 MB / 0.9759 GB, free: 125.6 MB / 490.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01424/1.606, allocations: 6.895 MB / 0.9827 GB, free: 118.5 MB / 490.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004366/1.61, allocations: 2.243 MB / 0.9848 GB, free: 116.3 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002286/1.612, allocations: 1.155 MB / 0.986 GB, free: 115.1 MB / 490.7 MB Notification: Performance of Backend: time 7.81e-07/1.612, allocations: 0 / 0.986 GB, free: 115.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02473/1.637, allocations: 6.202 MB / 0.992 GB, free: 109.4 MB / 490.7 MB Notification: Performance of SimCode: time 0.0176/1.655, allocations: 7.187 MB / 0.9991 GB, free: 102.2 MB / 490.7 MB Notification: Performance of Templates: time 0.2653/1.92, allocations: 99.6 MB / 1.096 GB, free: 2.727 MB / 490.7 MB