Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.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.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002739/0.002743, allocations: 368.3 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.809/3.809, allocations: 388.9 MB / 405.6 MB, free: 10.33 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.004914/0.004913, allocations: 231.3 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.6553/0.6553, allocations: 80.02 MB / 0.5627 GB, free: 19.85 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000644/0.0006441, allocations: 16 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1074, allocations: 54.87 MB / 0.6801 GB, free: 41.67 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization): time 0.3566/0.4641, allocations: 44.65 MB / 0.7237 GB, free: 14.29 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.04118/0.5053, allocations: 24.24 MB / 0.7474 GB, free: 11.33 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001592/0.507, allocations: 42.34 kB / 0.7474 GB, free: 11.3 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001882/0.5089, allocations: 457.2 kB / 0.7478 GB, free: 11.14 MB / 346.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.0196/0.5285, allocations: 4.692 MB / 0.7524 GB, free: 9.574 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01642/0.545, allocations: 4.154 MB / 0.7565 GB, free: 7.273 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.006507/0.5515, allocations: 4.667 MB / 0.761 GB, free: 4.625 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001879/0.5534, allocations: 0.8493 MB / 0.7619 GB, free: 4.098 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1307/0.6841, allocations: 51.32 MB / 0.812 GB, free: 4.496 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05333/0.7375, allocations: 20.77 MB / 0.8323 GB, free: 15.89 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006691/0.7382, allocations: 84 kB / 0.8324 GB, free: 15.8 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02606/0.7643, allocations: 7.985 MB / 0.8402 GB, free: 7.883 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001594/0.7659, allocations: 0.703 MB / 0.8408 GB, free: 7.195 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001178/0.7672, allocations: 452.6 kB / 0.8413 GB, free: 6.746 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01323/0.7804, allocations: 5.282 MB / 0.8464 GB, free: 1.738 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.7805, allocations: 0 / 0.8464 GB, free: 1.738 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.7805, allocations: 0 / 0.8464 GB, free: 1.738 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.371e-05/0.7806, allocations: 0 / 0.8464 GB, free: 1.738 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01491/0.7955, allocations: 3.084 MB / 0.8494 GB, free: 14.61 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.093e-05/0.7956, allocations: 12.03 kB / 0.8495 GB, free: 14.6 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007004/0.8026, allocations: 0.6883 MB / 0.8501 GB, free: 13.91 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0036/0.8062, allocations: 1.182 MB / 0.8513 GB, free: 12.71 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000304/0.8066, allocations: 166.1 kB / 0.8514 GB, free: 12.55 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006685/0.8073, allocations: 171 kB / 0.8516 GB, free: 12.39 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01201/0.8193, allocations: 3.574 MB / 0.8551 GB, free: 8.703 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.142e-05/0.8194, allocations: 7.938 kB / 0.8551 GB, free: 8.695 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003505/0.8198, allocations: 71.83 kB / 0.8552 GB, free: 8.629 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004021/0.8202, allocations: 219.5 kB / 0.8554 GB, free: 8.414 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01396/0.8342, allocations: 3.534 MB / 0.8588 GB, free: 4.875 MB / 442.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.03414/0.8684, allocations: 14.13 MB / 0.8726 GB, free: 5.715 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0098/0.8782, allocations: 2.293 MB / 0.8749 GB, free: 3.383 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003994/0.8823, allocations: 1.195 MB / 0.876 GB, free: 2.18 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.537/1.419, allocations: 64.33 MB / 0.9388 GB, free: 158.1 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006962/1.426, allocations: 1.727 MB / 0.9405 GB, free: 157.4 MB / 490.7 MB Notification: Performance of pre-optimization done (n=154): time 7.354e-06/1.426, allocations: 0 / 0.9405 GB, free: 157.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=174): time 0.03418/1.461, allocations: 9.482 MB / 0.9498 GB, free: 149.9 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.566e-05/1.461, allocations: 278.3 kB / 0.9501 GB, free: 149.6 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002303/1.463, allocations: 1.321 MB / 0.9514 GB, free: 148.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000394/1.463, allocations: 65.77 kB / 0.9514 GB, free: 148.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006772/1.464, allocations: 0.8372 MB / 0.9522 GB, free: 147.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006136/1.465, allocations: 0.5993 MB / 0.9528 GB, free: 146.8 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002035/1.465, allocations: 40 kB / 0.9529 GB, free: 146.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/1.465, allocations: 394.2 kB / 0.9532 GB, free: 146.3 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003733/1.469, allocations: 1.285 MB / 0.9545 GB, free: 145.1 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004044/1.473, allocations: 1.873 MB / 0.9563 GB, free: 142.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004094/1.477, allocations: 1.527 MB / 0.9578 GB, free: 141.4 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-05/1.477, allocations: 4 kB / 0.9578 GB, free: 141.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.01191/1.489, allocations: 4.353 MB / 0.9621 GB, free: 137 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003101/1.489, allocations: 0.5989 MB / 0.9626 GB, free: 136.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.772e-05/1.489, allocations: 16 kB / 0.9627 GB, free: 136.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02841/1.518, allocations: 3.748 MB / 0.9663 GB, free: 132.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00244/1.52, allocations: 343.4 kB / 0.9666 GB, free: 132.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/1.531, allocations: 4.069 MB / 0.9706 GB, free: 128 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003738/1.535, allocations: 267.5 kB / 0.9709 GB, free: 127.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003491/1.535, allocations: 108 kB / 0.971 GB, free: 127.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/1.535, allocations: 6.078 kB / 0.971 GB, free: 127.6 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0143/1.55, allocations: 3.982 MB / 0.9749 GB, free: 123.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-05/1.55, allocations: 16 kB / 0.9749 GB, free: 123.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01704/1.567, allocations: 2.492 MB / 0.9773 GB, free: 121.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002632/1.569, allocations: 375.4 kB / 0.9777 GB, free: 120.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008148/1.578, allocations: 3.348 MB / 0.981 GB, free: 117.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003702/1.581, allocations: 271.4 kB / 0.9812 GB, free: 117.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005199/1.582, allocations: 104 kB / 0.9813 GB, free: 117 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.001846/1.584, allocations: 0.7033 MB / 0.982 GB, free: 116.3 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004948/1.584, allocations: 158.1 kB / 0.9821 GB, free: 116.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01517/1.599, allocations: 6.837 MB / 0.9888 GB, free: 109.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01134/1.611, allocations: 5.507 MB / 0.9942 GB, free: 103.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.107e-05/1.611, allocations: 4 kB / 0.9942 GB, free: 103.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00203/1.613, allocations: 0.7617 MB / 0.995 GB, free: 102.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007917/1.614, allocations: 47.98 kB / 0.995 GB, free: 102.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003345/1.617, allocations: 263.5 kB / 0.9952 GB, free: 102.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000651/1.618, allocations: 181.7 kB / 0.9954 GB, free: 102.4 MB / 490.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01319/1.631, allocations: 5.109 MB / 1 GB, free: 97.3 MB / 490.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01617/1.647, allocations: 7.117 MB / 1.007 GB, free: 90.14 MB / 490.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.007385/1.655, allocations: 2.242 MB / 1.01 GB, free: 87.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004071/1.659, allocations: 1.237 MB / 1.011 GB, free: 86.67 MB / 490.7 MB Notification: Performance of Backend: time 1.573e-06/1.659, allocations: 0 / 1.011 GB, free: 86.67 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.07673/1.736, allocations: 5.585 MB / 1.016 GB, free: 81.43 MB / 490.7 MB Notification: Performance of SimCode: time 0.01987/1.756, allocations: 6.521 MB / 1.023 GB, free: 74.86 MB / 490.7 MB Notification: Performance of Templates: time 0.5116/2.267, allocations: 92.94 MB / 1.113 GB, free: 167.9 MB / 490.7 MB