Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00281/0.002815, allocations: 371.7 kB / 15.97 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.933/3.933, allocations: 388.9 MB / 405.6 MB, free: 9.652 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.003585/0.003585, allocations: 235.8 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.5572/0.5572, allocations: 80.02 MB / 0.5627 GB, free: 19.77 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004491/0.0004493, allocations: 12.59 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09651/0.09698, allocations: 54.89 MB / 0.6801 GB, free: 41.66 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2): time 0.3891/0.4861, allocations: 61.84 MB / 0.7405 GB, free: 14.07 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.05044/0.5366, allocations: 27.85 MB / 0.7677 GB, free: 14.22 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002536/0.5392, allocations: 67.72 kB / 0.7678 GB, free: 14.19 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003231/0.5425, allocations: 0.6825 MB / 0.7684 GB, free: 13.61 MB / 362.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.02358/0.5661, allocations: 5.399 MB / 0.7737 GB, free: 9.586 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02523/0.5914, allocations: 5.56 MB / 0.7791 GB, free: 5.781 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.009538/0.6009, allocations: 5.227 MB / 0.7842 GB, free: 1.5 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00232/0.6033, allocations: 0.8094 MB / 0.785 GB, free: 0.6719 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004835/0.6082, allocations: 1.448 MB / 0.7864 GB, free: 15.21 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03295/0.6412, allocations: 12.89 MB / 0.799 GB, free: 2.312 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005658/0.6418, allocations: 71.83 kB / 0.7991 GB, free: 2.246 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0282/0.67, allocations: 8.86 MB / 0.8077 GB, free: 9.375 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001472/0.6716, allocations: 0.5102 MB / 0.8082 GB, free: 8.863 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001061/0.6727, allocations: 360.8 kB / 0.8086 GB, free: 8.504 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01437/0.6871, allocations: 5.231 MB / 0.8137 GB, free: 3.262 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.6871, allocations: 0 / 0.8137 GB, free: 3.262 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.6871, allocations: 0 / 0.8137 GB, free: 3.262 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.958e-05/0.6872, allocations: 0 / 0.8137 GB, free: 3.262 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01034/0.6975, allocations: 2.648 MB / 0.8163 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/0.6976, allocations: 12.03 kB / 0.8163 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005404/0.703, allocations: 0.5405 MB / 0.8168 GB, free: 15.99 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01218/0.7153, allocations: 4.404 MB / 0.8211 GB, free: 11.55 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001972/0.7155, allocations: 110.4 kB / 0.8212 GB, free: 11.44 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003803/0.7159, allocations: 127.9 kB / 0.8214 GB, free: 11.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007888/0.7238, allocations: 2.224 MB / 0.8235 GB, free: 8.977 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.648e-05/0.7239, allocations: 3.938 kB / 0.8235 GB, free: 8.973 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002718/0.7242, allocations: 59.97 kB / 0.8236 GB, free: 8.914 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002843/0.7245, allocations: 110.2 kB / 0.8237 GB, free: 8.805 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009071/0.7336, allocations: 2.042 MB / 0.8257 GB, free: 6.754 MB / 410.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.02025/0.7539, allocations: 9.575 MB / 0.835 GB, free: 12.36 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0058/0.7597, allocations: 1.381 MB / 0.8364 GB, free: 10.96 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002139/0.7619, allocations: 0.6673 MB / 0.837 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06719/0.8292, allocations: 19.01 MB / 0.8556 GB, free: 4.969 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004457/0.8337, allocations: 1.024 MB / 0.8566 GB, free: 3.926 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 7.143e-06/0.8337, allocations: 0 / 0.8566 GB, free: 3.926 MB / 442.7 MB Notification: Performance of matching and sorting (n=104): time 0.02189/0.8556, allocations: 5.049 MB / 0.8615 GB, free: 14.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001504/0.8558, allocations: 222.6 kB / 0.8617 GB, free: 14.53 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00223/0.8581, allocations: 1.08 MB / 0.8628 GB, free: 13.44 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002622/0.8584, allocations: 41.7 kB / 0.8628 GB, free: 13.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008338/0.8592, allocations: 0.6786 MB / 0.8635 GB, free: 12.7 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005251/0.8597, allocations: 355 kB / 0.8638 GB, free: 12.35 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.8599, allocations: 24 kB / 0.8639 GB, free: 12.33 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002134/0.8601, allocations: 361.9 kB / 0.8642 GB, free: 11.97 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002266/0.8624, allocations: 0.6747 MB / 0.8649 GB, free: 11.29 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002609/0.865, allocations: 1.032 MB / 0.8659 GB, free: 10.12 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002755/0.8678, allocations: 0.84 MB / 0.8667 GB, free: 9.273 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.816e-06/0.8678, allocations: 0 / 0.8667 GB, free: 9.273 MB / 458.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.006757/0.8746, allocations: 2.018 MB / 0.8687 GB, free: 7.234 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003766/0.875, allocations: 411.5 kB / 0.8691 GB, free: 6.691 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.83e-05/0.8751, allocations: 12 kB / 0.8691 GB, free: 6.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008131/0.8759, allocations: 145.5 kB / 0.8692 GB, free: 6.531 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002632/0.8786, allocations: 327.6 kB / 0.8695 GB, free: 6.211 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/0.8798, allocations: 1.257 MB / 0.8708 GB, free: 4.902 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00225/0.8821, allocations: 163.8 kB / 0.8709 GB, free: 4.742 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002104/0.8823, allocations: 67.97 kB / 0.871 GB, free: 4.676 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.8824, allocations: 7.594 kB / 0.871 GB, free: 4.672 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006514/0.8889, allocations: 1.854 MB / 0.8728 GB, free: 2.805 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.755e-05/0.889, allocations: 12 kB / 0.8728 GB, free: 2.793 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007725/0.8898, allocations: 137.6 kB / 0.8729 GB, free: 2.652 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002679/0.8925, allocations: 335.7 kB / 0.8733 GB, free: 2.324 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001253/0.8938, allocations: 1.261 MB / 0.8745 GB, free: 1.012 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002209/0.896, allocations: 147.8 kB / 0.8746 GB, free: 0.8672 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002165/0.8962, allocations: 76.03 kB / 0.8747 GB, free: 0.793 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.state_b.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 (158): * Single equations (assignments): 153 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001267/0.8975, allocations: 0.5398 MB / 0.8752 GB, free: 240 kB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000379/0.8979, allocations: 134.4 kB / 0.8754 GB, free: 104 kB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01125/0.9092, allocations: 4.717 MB / 0.88 GB, free: 11.32 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009305/0.9185, allocations: 3.952 MB / 0.8838 GB, free: 7.305 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.289e-05/0.9186, allocations: 0 / 0.8838 GB, free: 7.305 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001461/0.9201, allocations: 0.5091 MB / 0.8843 GB, free: 6.773 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005214/0.9206, allocations: 35.92 kB / 0.8844 GB, free: 6.738 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001857/0.9225, allocations: 159.7 kB / 0.8845 GB, free: 6.582 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003005/0.9228, allocations: 80.88 kB / 0.8846 GB, free: 6.5 MB / 474.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00829/0.9311, allocations: 2.943 MB / 0.8875 GB, free: 3.5 MB / 474.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01044/0.9416, allocations: 4.23 MB / 0.8916 GB, free: 15.21 MB / 490.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003233/0.9449, allocations: 1.349 MB / 0.8929 GB, free: 13.86 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001927/0.9469, allocations: 0.8294 MB / 0.8937 GB, free: 13.03 MB / 490.7 MB Notification: Performance of Backend: time 5.51e-07/0.9469, allocations: 4 kB / 0.8937 GB, free: 13.03 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02514/0.9721, allocations: 4.419 MB / 0.898 GB, free: 8.578 MB / 490.7 MB Notification: Performance of SimCode: time 0.01193/0.9841, allocations: 4.934 MB / 0.9029 GB, free: 3.578 MB / 490.7 MB Notification: Performance of Templates: time 0.4739/1.458, allocations: 74.4 MB / 0.9755 GB, free: 125.4 MB / 490.7 MB