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.002212/0.002217, allocations: 186.5 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.927/1.927, allocations: 205.4 MB / 222.5 MB, free: 9.145 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001143/0.001143, allocations: 101.4 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5008/0.5008, allocations: 43.56 MB / 362.7 MB, free: 52.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004588/0.0004589, allocations: 8 kB / 431.4 MB, free: 6.184 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1222, allocations: 58.84 MB / 490.2 MB, free: 11.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.463/8.585, allocations: 2.833 GB / 3.312 GB, free: 54.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/8.586, allocations: 80.33 kB / 3.312 GB, free: 54.26 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.736/11.32, allocations: 0.4925 GB / 3.805 GB, free: 56.86 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.655e-06/11.32, allocations: 0 / 3.805 GB, free: 56.86 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002304/11.32, allocations: 42.2 kB / 3.805 GB, free: 56.85 MB / 0.5261 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.01644/11.34, allocations: 3.186 MB / 3.808 GB, free: 55.71 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/11.34, allocations: 12.25 kB / 3.808 GB, free: 55.71 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008095/11.35, allocations: 0.7113 MB / 3.808 GB, free: 55.61 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006882/11.35, allocations: 1.59 MB / 3.81 GB, free: 55.24 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002975/11.35, allocations: 169.9 kB / 3.81 GB, free: 55.24 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009216/11.35, allocations: 179.9 kB / 3.81 GB, free: 55.23 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01248/11.37, allocations: 3.582 MB / 3.814 GB, free: 54.78 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-05/11.37, allocations: 8.438 kB / 3.814 GB, free: 54.78 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004167/11.37, allocations: 74.81 kB / 3.814 GB, free: 54.78 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002942/11.37, allocations: 177.8 kB / 3.814 GB, free: 54.78 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0138/11.38, allocations: 3.516 MB / 3.817 GB, free: 54.76 MB / 0.5261 GB 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.03044/11.41, allocations: 14.12 MB / 3.831 GB, free: 47.01 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0098/11.42, allocations: 2.28 MB / 3.833 GB, free: 46.87 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2032/11.63, allocations: 63.43 MB / 3.895 GB, free: 39.35 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006924/11.63, allocations: 1.726 MB / 3.897 GB, free: 39.21 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=154): time 5.7e-06/11.63, allocations: 0 / 3.897 GB, free: 39.21 MB / 0.5574 GB Notification: Performance of matching and sorting (n=174): time 0.03604/11.67, allocations: 9.453 MB / 3.906 GB, free: 37.55 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000197/11.67, allocations: 283.7 kB / 3.907 GB, free: 37.24 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002483/11.67, allocations: 1.187 MB / 3.908 GB, free: 37.07 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.0006047/11.67, allocations: 60.23 kB / 3.908 GB, free: 37.04 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.000787/11.67, allocations: 0.8172 MB / 3.909 GB, free: 36.57 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009356/11.67, allocations: 0.6003 MB / 3.909 GB, free: 36.2 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003102/11.67, allocations: 41.38 kB / 3.909 GB, free: 36.2 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0002449/11.67, allocations: 394.2 kB / 3.91 GB, free: 35.89 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004189/11.68, allocations: 1.284 MB / 3.911 GB, free: 35.87 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004632/11.68, allocations: 1.821 MB / 3.913 GB, free: 35.23 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004766/11.69, allocations: 1.516 MB / 3.914 GB, free: 35.18 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.232e-05/11.69, allocations: 8.594 kB / 3.914 GB, free: 35.18 MB / 0.5574 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01478/11.7, allocations: 4.257 MB / 3.918 GB, free: 35.02 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.002618/11.71, allocations: 6.27 MB / 3.924 GB, free: 28.44 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.396e-05/11.71, allocations: 13.75 kB / 3.924 GB, free: 28.44 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0286/11.73, allocations: 3.679 MB / 3.928 GB, free: 28.32 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002442/11.74, allocations: 336.8 kB / 3.928 GB, free: 28.32 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01225/11.75, allocations: 4.053 MB / 3.932 GB, free: 27.72 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004326/11.75, allocations: 280.1 kB / 3.933 GB, free: 27.69 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007193/11.75, allocations: 104.7 kB / 3.933 GB, free: 27.69 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/11.75, allocations: 5.719 kB / 3.933 GB, free: 27.69 MB / 0.5574 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01418/11.77, allocations: 3.935 MB / 3.936 GB, free: 27.6 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.728e-05/11.77, allocations: 15 kB / 3.937 GB, free: 27.6 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01612/11.78, allocations: 2.352 MB / 3.939 GB, free: 27.5 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002751/11.79, allocations: 368.6 kB / 3.939 GB, free: 27.48 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008698/11.8, allocations: 3.333 MB / 3.942 GB, free: 26.03 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003454/11.8, allocations: 269.9 kB / 3.943 GB, free: 25.96 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005005/11.8, allocations: 102.4 kB / 3.943 GB, free: 25.95 MB / 0.5574 GB 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: 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 () * Number of clocked 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.002194/11.8, allocations: 0.6999 MB / 3.943 GB, free: 25.54 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005451/11.8, allocations: 173.2 kB / 3.944 GB, free: 25.46 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01618/11.82, allocations: 6.847 MB / 3.95 GB, free: 22.63 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.859e-05/11.82, allocations: 83.09 kB / 3.95 GB, free: 22.61 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.445e-05/11.82, allocations: 3.375 kB / 3.95 GB, free: 22.61 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01208/11.83, allocations: 5.497 MB / 3.956 GB, free: 20.14 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02186/11.85, allocations: 9.57 MB / 3.965 GB, free: 15.05 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.362e-05/11.85, allocations: 3.953 kB / 3.965 GB, free: 15.04 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003761/11.86, allocations: 443.5 kB / 3.966 GB, free: 14.7 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00298/11.86, allocations: 476.8 kB / 3.966 GB, free: 14.35 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005771/11.86, allocations: 68.48 kB / 3.966 GB, free: 14.29 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002753/11.86, allocations: 3.212 MB / 3.969 GB, free: 11.09 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/11.86, allocations: 4.031 kB / 3.969 GB, free: 11.09 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01655/11.88, allocations: 7.127 MB / 3.976 GB, free: 4.734 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00237/11.88, allocations: 0.7657 MB / 3.977 GB, free: 4.066 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008339/11.88, allocations: 54.56 kB / 3.977 GB, free: 4.02 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003834/11.89, allocations: 210.5 kB / 3.977 GB, free: 3.863 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009775/11.89, allocations: 187.2 kB / 3.977 GB, free: 3.758 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003842/11.89, allocations: 69.75 kB / 3.977 GB, free: 3.699 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.003212/11.89, allocations: 1.241 MB / 3.979 GB, free: 2.656 MB / 0.5574 GB Notification: Performance of sort global known variables: time 7.91e-07/11.89, allocations: 2.953 kB / 3.979 GB, free: 2.656 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01219/11.9, allocations: 2.365 MB / 3.981 GB, free: 340 kB / 0.5574 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 () * Number of clocked 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.3993/12.3, allocations: 2.017 MB / 3.983 GB, free: 85.77 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.01932/12.32, allocations: 5.485 MB / 3.988 GB, free: 85.69 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.319e-05/12.32, allocations: 3.594 kB / 3.988 GB, free: 85.69 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.006193/12.33, allocations: 2.365 MB / 3.991 GB, free: 85.67 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007559/12.34, allocations: 0.7917 MB / 3.991 GB, free: 85.66 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01782/12.35, allocations: 8.225 MB / 3.999 GB, free: 82.75 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002441/12.36, allocations: 2.049 MB / 4.001 GB, free: 82.01 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00129/12.36, allocations: 171 kB / 4.002 GB, free: 82 MB / 0.5574 GB Notification: Performance of SimCode: time 1.092e-06/12.36, allocations: 0 / 4.002 GB, free: 82 MB / 0.5574 GB Notification: Performance of Templates: time 0.1579/12.52, allocations: 87.7 MB / 4.087 GB, free: 78.04 MB / 0.5574 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)