Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001005/0.001005, allocations: 182.2 kB / 12.74 MB, free: 2.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.418/1.418, allocations: 194.3 MB / 207.5 MB, free: 3.449 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001661/0.001662, allocations: 117.6 kB / 252.6 MB, free: 4.816 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2029/0.2029, allocations: 39.93 MB / 337.5 MB, free: 492 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.386e-05/3.386e-05, allocations: 8 kB / 400.3 MB, free: 69.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1403, allocations: 54.86 MB / 455.1 MB, free: 14.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.086/8.226, allocations: 2.664 GB / 3.108 GB, free: 70.87 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003409/8.227, allocations: 75.95 kB / 3.108 GB, free: 70.79 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.183/10.41, allocations: 0.489 GB / 3.597 GB, free: 57.26 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.876e-06/10.41, allocations: 0 / 3.597 GB, free: 57.26 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001714/10.41, allocations: 49.36 kB / 3.597 GB, free: 57.25 MB / 0.4948 GB 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.01642/10.43, allocations: 2.981 MB / 3.6 GB, free: 56.12 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.318e-05/10.43, allocations: 10.28 kB / 3.6 GB, free: 56.12 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006178/10.43, allocations: 0.7168 MB / 3.601 GB, free: 56.01 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004939/10.44, allocations: 1.572 MB / 3.603 GB, free: 55.64 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002009/10.44, allocations: 165.2 kB / 3.603 GB, free: 55.64 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006198/10.44, allocations: 181.6 kB / 3.603 GB, free: 55.63 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006733/10.44, allocations: 3.528 MB / 3.606 GB, free: 55.18 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.46e-05/10.45, allocations: 9.938 kB / 3.606 GB, free: 55.18 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002689/10.45, allocations: 74.48 kB / 3.606 GB, free: 55.18 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000151/10.45, allocations: 170.8 kB / 3.607 GB, free: 55.18 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006203/10.45, allocations: 3.334 MB / 3.61 GB, free: 55.16 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or 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.01766/10.47, allocations: 14.12 MB / 3.624 GB, free: 47.42 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004113/10.47, allocations: 2.157 MB / 3.626 GB, free: 47.28 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001332/10.47, allocations: 1.079 MB / 3.627 GB, free: 47.23 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1287/10.6, allocations: 63.65 MB / 3.689 GB, free: 23.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00567/10.61, allocations: 1.688 MB / 3.691 GB, free: 23.36 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=154): time 8.145e-06/10.61, allocations: 0 / 3.691 GB, free: 23.36 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.02164/10.63, allocations: 8.157 MB / 3.698 GB, free: 21.73 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002204/10.63, allocations: 294.2 kB / 3.699 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001994/10.63, allocations: 1.171 MB / 3.7 GB, free: 21.23 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002345/10.63, allocations: 61.61 kB / 3.7 GB, free: 21.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007668/10.63, allocations: 0.8224 MB / 3.701 GB, free: 20.81 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006248/10.63, allocations: 0.5985 MB / 3.701 GB, free: 20.43 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/10.64, allocations: 45.38 kB / 3.701 GB, free: 20.43 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002575/10.64, allocations: 387.9 kB / 3.702 GB, free: 20.13 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001757/10.64, allocations: 1.14 MB / 3.703 GB, free: 20.12 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001904/10.64, allocations: 1.701 MB / 3.705 GB, free: 19.48 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00189/10.64, allocations: 1.375 MB / 3.706 GB, free: 19.39 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/10.64, allocations: 3.938 kB / 3.706 GB, free: 19.39 MB / 0.5105 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.00643/10.65, allocations: 3.973 MB / 3.71 GB, free: 17.98 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.005207/10.65, allocations: 6.28 MB / 3.716 GB, free: 27.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.765e-05/10.65, allocations: 14.25 kB / 3.716 GB, free: 27.27 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01472/10.67, allocations: 3.44 MB / 3.719 GB, free: 26.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/10.67, allocations: 335.9 kB / 3.72 GB, free: 26.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006033/10.68, allocations: 3.812 MB / 3.723 GB, free: 23.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003024/10.68, allocations: 281.5 kB / 3.724 GB, free: 22.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004489/10.68, allocations: 107.7 kB / 3.724 GB, free: 22.87 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/10.68, allocations: 7.953 kB / 3.724 GB, free: 22.86 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006336/10.68, allocations: 3.576 MB / 3.727 GB, free: 19.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.327e-05/10.69, allocations: 16 kB / 3.727 GB, free: 19.84 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008356/10.69, allocations: 2.263 MB / 3.729 GB, free: 18.11 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001627/10.7, allocations: 371.7 kB / 3.73 GB, free: 17.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004101/10.7, allocations: 3.105 MB / 3.733 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002585/10.7, allocations: 263.8 kB / 3.733 GB, free: 14.92 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004222/10.7, allocations: 106.5 kB / 3.733 GB, free: 14.82 MB / 0.5261 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * 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.0009545/10.7, allocations: 226.8 kB / 3.733 GB, free: 14.62 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005742/10.7, allocations: 177.1 kB / 3.734 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01004/10.71, allocations: 6.752 MB / 3.74 GB, free: 8.523 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.881e-05/10.71, allocations: 73.95 kB / 3.74 GB, free: 8.48 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/10.71, allocations: 4 kB / 3.74 GB, free: 8.477 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006588/10.72, allocations: 5.441 MB / 3.746 GB, free: 3.469 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3892/11.11, allocations: 9.467 MB / 3.755 GB, free: 86.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.629e-05/11.11, allocations: 0 / 3.755 GB, free: 86.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001717/11.11, allocations: 440.2 kB / 3.755 GB, free: 86.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001407/11.11, allocations: 450.4 kB / 3.756 GB, free: 86.16 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001891/11.11, allocations: 62.64 kB / 3.756 GB, free: 86.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001481/11.11, allocations: 3.21 MB / 3.759 GB, free: 83.58 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/11.11, allocations: 2.297 kB / 3.759 GB, free: 83.58 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008922/11.12, allocations: 6.745 MB / 3.765 GB, free: 83.13 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002083/11.13, allocations: 0.7688 MB / 3.766 GB, free: 83.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004311/11.13, allocations: 56.12 kB / 3.766 GB, free: 83.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001692/11.13, allocations: 213.4 kB / 3.766 GB, free: 83.04 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003977/11.13, allocations: 178 kB / 3.767 GB, free: 83.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001612/11.13, allocations: 73.84 kB / 3.767 GB, free: 83.04 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002108/11.13, allocations: 1.222 MB / 3.768 GB, free: 82.92 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/11.13, allocations: 1.219 kB / 3.768 GB, free: 82.92 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01404/11.14, allocations: 2.36 MB / 3.77 GB, free: 82.91 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.016/11.16, allocations: 2.006 MB / 3.772 GB, free: 82.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009308/11.17, allocations: 5.118 MB / 3.777 GB, free: 82.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/11.17, allocations: 4.625 kB / 3.777 GB, free: 82.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003161/11.17, allocations: 2.275 MB / 3.779 GB, free: 82.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004253/11.18, allocations: 0.7887 MB / 3.78 GB, free: 82.68 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008817/11.19, allocations: 5.677 MB / 3.786 GB, free: 81.69 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0017/11.19, allocations: 2.049 MB / 3.788 GB, free: 80.95 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004073/11.19, allocations: 1.621 MB / 3.789 GB, free: 80.92 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005043/11.19, allocations: 144.1 kB / 3.789 GB, free: 80.91 MB / 0.5261 GB Notification: Performance of SimCode: time 1.203e-06/11.19, allocations: 0 / 3.789 GB, free: 80.91 MB / 0.5261 GB Notification: Performance of Templates: time 0.1251/11.32, allocations: 85.11 MB / 3.872 GB, free: 77.1 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1)