Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") 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.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002231/0.002236, allocations: 180.5 kB / 8.365 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.001/2.001, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001181/0.001181, allocations: 86.2 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3041/0.3041, allocations: 43.49 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.672e-05/1.68e-05, allocations: 4.219 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4798/0.4798, allocations: 58.85 MB / 477.1 MB, free: 5.273 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.741/9.221, allocations: 2.832 GB / 3.298 GB, free: 103.1 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/9.221, allocations: 78.61 kB / 3.298 GB, free: 103 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 2.427/11.65, allocations: 498.2 MB / 3.785 GB, free: 28.2 MB / 0.4952 GB Notification: Performance of FrontEnd: time 3.216e-06/11.65, allocations: 0 / 3.785 GB, free: 28.2 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 0.0002161/11.65, allocations: 51.88 kB / 3.785 GB, free: 28.14 MB / 0.4952 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.01609/11.66, allocations: 2.978 MB / 3.788 GB, free: 25.47 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/11.66, allocations: 8.031 kB / 3.788 GB, free: 25.46 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007693/11.67, allocations: 0.7096 MB / 3.789 GB, free: 24.9 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006669/11.68, allocations: 1.567 MB / 3.79 GB, free: 23.58 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002324/11.68, allocations: 99.31 kB / 3.79 GB, free: 23.49 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006946/11.68, allocations: 100 kB / 3.79 GB, free: 23.39 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007308/11.69, allocations: 2.833 MB / 3.793 GB, free: 20.89 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007196/11.69, allocations: 2.874 MB / 3.796 GB, free: 18.35 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-05/11.69, allocations: 15.77 kB / 3.796 GB, free: 18.34 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003448/11.7, allocations: 4 kB / 3.796 GB, free: 18.34 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002317/11.7, allocations: 169.6 kB / 3.796 GB, free: 18.19 MB / 0.4952 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.8407/12.54, allocations: 140.5 MB / 3.933 GB, free: 18.7 MB / 0.5421 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00401/12.54, allocations: 1.58 MB / 3.935 GB, free: 18.66 MB / 0.5421 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002101/12.54, allocations: 0.9778 MB / 3.936 GB, free: 18.65 MB / 0.5421 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0545/12.6, allocations: 16.72 MB / 3.952 GB, free: 23.86 MB / 0.5577 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003125/12.6, allocations: 1.136 MB / 3.953 GB, free: 23.76 MB / 0.5577 GB Notification: Performance of pre-optimization done (n=139): time 5.441e-06/12.6, allocations: 4 kB / 3.953 GB, free: 23.75 MB / 0.5577 GB Notification: Performance of matching and sorting (n=159): time 0.03123/12.63, allocations: 7.401 MB / 3.961 GB, free: 22.79 MB / 0.5577 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001963/12.63, allocations: 228 kB / 3.961 GB, free: 22.54 MB / 0.5577 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002106/12.63, allocations: 0.9234 MB / 3.962 GB, free: 22.38 MB / 0.5577 GB Notification: Performance of collectPreVariables (initialization): time 0.0006635/12.63, allocations: 29.48 kB / 3.962 GB, free: 22.35 MB / 0.5577 GB Notification: Performance of collectInitialEqns (initialization): time 0.001025/12.64, allocations: 0.8909 MB / 3.963 GB, free: 21.91 MB / 0.5577 GB Notification: Performance of collectInitialBindings (initialization): time 0.00103/12.64, allocations: 0.5392 MB / 3.963 GB, free: 21.63 MB / 0.5577 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002833/12.64, allocations: 0 / 3.963 GB, free: 21.63 MB / 0.5577 GB Notification: Performance of setup shared object (initialization): time 0.0002814/12.64, allocations: 400.8 kB / 3.963 GB, free: 21.32 MB / 0.5577 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002734/12.64, allocations: 1.126 MB / 3.965 GB, free: 21.31 MB / 0.5577 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003246/12.64, allocations: 1.663 MB / 3.966 GB, free: 20.68 MB / 0.5577 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01031/12.65, allocations: 2.007 MB / 3.968 GB, free: 20.62 MB / 0.5577 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.172e-05/12.65, allocations: 6.781 kB / 3.968 GB, free: 20.62 MB / 0.5577 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01693/12.67, allocations: 4.39 MB / 3.972 GB, free: 20.46 MB / 0.5577 GB Notification: Performance of prepare postOptimizeDAE: time 0.002725/12.67, allocations: 6.269 MB / 3.979 GB, free: 13.88 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-05/12.67, allocations: 16.23 kB / 3.979 GB, free: 13.88 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01833/12.69, allocations: 2.747 MB / 3.981 GB, free: 13.78 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002383/12.69, allocations: 333.1 kB / 3.982 GB, free: 13.78 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01164/12.71, allocations: 4.246 MB / 3.986 GB, free: 29.19 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004382/12.71, allocations: 253.2 kB / 3.986 GB, free: 29.16 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000421/12.71, allocations: 111.6 kB / 3.986 GB, free: 29.16 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/12.71, allocations: 3.844 kB / 3.986 GB, free: 29.16 MB / 0.5733 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01541/12.73, allocations: 3.867 MB / 3.99 GB, free: 29.07 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.291e-05/12.73, allocations: 16.09 kB / 3.99 GB, free: 29.07 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01254/12.74, allocations: 2.041 MB / 3.992 GB, free: 29.02 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00273/12.74, allocations: 368.7 kB / 3.992 GB, free: 29.01 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006598/12.75, allocations: 3.243 MB / 3.995 GB, free: 28.44 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003409/12.75, allocations: 224.6 kB / 3.996 GB, free: 28.42 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003264/12.75, allocations: 107.7 kB / 3.996 GB, free: 28.42 MB / 0.5733 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 ($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,source.medium.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.0007623/12.75, allocations: 159.7 kB / 3.996 GB, free: 28.3 MB / 0.5733 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005178/12.75, allocations: 142.9 kB / 3.996 GB, free: 28.23 MB / 0.5733 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01333/12.77, allocations: 5.667 MB / 4.002 GB, free: 27.8 MB / 0.5733 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.078e-05/12.77, allocations: 66.05 kB / 4.002 GB, free: 27.8 MB / 0.5733 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/12.77, allocations: 1.562 kB / 4.002 GB, free: 27.8 MB / 0.5733 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01087/12.78, allocations: 5.121 MB / 4.007 GB, free: 26.89 MB / 0.5733 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0175/12.8, allocations: 8.41 MB / 4.015 GB, free: 22.56 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.44e-05/12.8, allocations: 0 / 4.015 GB, free: 22.56 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003147/12.8, allocations: 395.6 kB / 4.015 GB, free: 22.27 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001749/12.8, allocations: 418.2 kB / 4.016 GB, free: 22.04 MB / 0.5733 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002227/12.8, allocations: 40.09 kB / 4.016 GB, free: 22.02 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002954/12.8, allocations: 3.354 MB / 4.019 GB, free: 19.01 MB / 0.5733 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/12.8, allocations: 4.031 kB / 4.019 GB, free: 19.01 MB / 0.5733 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01253/12.82, allocations: 6.25 MB / 4.025 GB, free: 15.57 MB / 0.5733 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001771/12.82, allocations: 0.5618 MB / 4.026 GB, free: 15.16 MB / 0.5733 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004026/12.82, allocations: 23.58 kB / 4.026 GB, free: 15.14 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00248/12.82, allocations: 174.2 kB / 4.026 GB, free: 15.03 MB / 0.5733 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004587/12.82, allocations: 164.8 kB / 4.026 GB, free: 14.95 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002014/12.82, allocations: 63.52 kB / 4.026 GB, free: 14.91 MB / 0.5733 GB Notification: Performance of sorting global known variables: time 0.001241/12.82, allocations: 0.6607 MB / 4.027 GB, free: 14.5 MB / 0.5733 GB Notification: Performance of sort global known variables: time 4.31e-07/12.82, allocations: 0 / 4.027 GB, free: 14.5 MB / 0.5733 GB Notification: Performance of remove unused functions: time 0.01009/12.83, allocations: 2.177 MB / 4.029 GB, free: 12.61 MB / 0.5733 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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: 34 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$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,$cse21.phase,$cse21.region,$cse27.phase,$cse27.region,$cse31.phase,$cse31.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 160 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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.01222/12.85, allocations: 2.083 MB / 4.031 GB, free: 11.17 MB / 0.5733 GB Notification: Performance of simCode: created initialization part: time 0.01321/12.86, allocations: 4.815 MB / 4.035 GB, free: 8.422 MB / 0.5733 GB Notification: Performance of simCode: created event and clocks part: time 9.699e-06/12.86, allocations: 0 / 4.035 GB, free: 8.422 MB / 0.5733 GB Notification: Performance of simCode: created simulation system equations: time 0.005752/12.86, allocations: 2.071 MB / 4.038 GB, free: 6.59 MB / 0.5733 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005593/12.87, allocations: 0.5534 MB / 4.038 GB, free: 6.195 MB / 0.5733 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01317/12.88, allocations: 5.155 MB / 4.043 GB, free: 1.691 MB / 0.5733 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002197/12.89, allocations: 1.912 MB / 4.045 GB, free: 144 kB / 0.5733 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3935/13.28, allocations: 155.1 kB / 4.045 GB, free: 114.5 MB / 0.5733 GB Notification: Performance of SimCode: time 2.835e-06/13.28, allocations: 0 / 4.045 GB, free: 114.5 MB / 0.5733 GB Notification: Performance of Templates: time 0.157/13.44, allocations: 80.75 MB / 4.124 GB, free: 111.2 MB / 0.5733 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1)