Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002184/0.002183, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.011/2.011, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001152/0.001152, allocations: 94.62 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2828/0.2828, allocations: 43.5 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.252e-05/3.28e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1232, allocations: 58.86 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.384/8.508, allocations: 2.826 GB / 3.299 GB, free: 18.92 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002718/8.508, allocations: 82.23 kB / 3.299 GB, free: 18.88 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.652/13.16, allocations: 0.8679 GB / 4.167 GB, free: 41.59 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.475e-06/13.16, allocations: 3.375 kB / 4.167 GB, free: 41.59 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003195/13.16, allocations: 60.58 kB / 4.167 GB, free: 41.59 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01751/13.18, allocations: 3.829 MB / 4.17 GB, free: 39.95 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/13.18, allocations: 10.78 kB / 4.17 GB, free: 39.95 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008005/13.19, allocations: 0.782 MB / 4.171 GB, free: 39.82 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007587/13.19, allocations: 1.942 MB / 4.173 GB, free: 39.39 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002589/13.19, allocations: 165.3 kB / 4.173 GB, free: 39.39 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007/13.19, allocations: 180.8 kB / 4.173 GB, free: 39.39 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01023/13.2, allocations: 3.295 MB / 4.177 GB, free: 38.93 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.047e-05/13.2, allocations: 9.703 kB / 4.177 GB, free: 38.92 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004051/13.21, allocations: 81.95 kB / 4.177 GB, free: 38.92 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003191/13.21, allocations: 152.2 kB / 4.177 GB, free: 38.92 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009687/13.22, allocations: 2.92 MB / 4.18 GB, free: 38.9 MB / 0.5417 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.02854/13.24, allocations: 14.22 MB / 4.193 GB, free: 30.4 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006265/13.25, allocations: 1.989 MB / 4.195 GB, free: 30.38 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002279/13.25, allocations: 0.9875 MB / 4.196 GB, free: 30.36 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07508/13.33, allocations: 24.62 MB / 4.22 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005422/13.33, allocations: 1.588 MB / 4.222 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00171/13.33, allocations: 174.2 kB / 4.222 GB, free: 15.13 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=146): time 5.3e-06/13.33, allocations: 0 / 4.222 GB, free: 15.13 MB / 0.5417 GB Notification: Performance of matching and sorting (n=158): time 0.03168/13.37, allocations: 6.908 MB / 4.229 GB, free: 14.19 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/13.37, allocations: 253.9 kB / 4.229 GB, free: 13.91 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004886/13.37, allocations: 1.392 MB / 4.231 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006729/13.37, allocations: 58.17 kB / 4.231 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001312/13.37, allocations: 0.8292 MB / 4.231 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001205/13.37, allocations: 0.5205 MB / 4.232 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003558/13.38, allocations: 37.12 kB / 4.232 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002055/13.38, allocations: 378.5 kB / 4.232 GB, free: 12.65 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003787/13.38, allocations: 0.9336 MB / 4.233 GB, free: 12.65 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00406/13.38, allocations: 1.304 MB / 4.234 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003769/13.39, allocations: 1.155 MB / 4.236 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.921e-05/13.39, allocations: 8.562 kB / 4.236 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.01292/13.4, allocations: 2.875 MB / 4.238 GB, free: 27.95 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002093/13.4, allocations: 3.722 MB / 4.242 GB, free: 24.08 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.768e-05/13.4, allocations: 9.594 kB / 4.242 GB, free: 24.08 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007439/13.41, allocations: 0.5934 MB / 4.243 GB, free: 24.05 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005187/13.42, allocations: 436.8 kB / 4.243 GB, free: 24.05 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005031/13.42, allocations: 2.822 MB / 4.246 GB, free: 21.96 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005688/13.43, allocations: 239.4 kB / 4.246 GB, free: 21.95 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000701/13.43, allocations: 91.23 kB / 4.246 GB, free: 21.95 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/13.43, allocations: 3.125 kB / 4.246 GB, free: 21.95 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01128/13.44, allocations: 2.603 MB / 4.249 GB, free: 21.81 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.864e-05/13.44, allocations: 11.28 kB / 4.249 GB, free: 21.81 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001394/13.44, allocations: 191.8 kB / 4.249 GB, free: 21.79 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005425/13.45, allocations: 456.2 kB / 4.249 GB, free: 21.79 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002448/13.45, allocations: 1.866 MB / 4.251 GB, free: 20.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004662/13.45, allocations: 236.2 kB / 4.251 GB, free: 20.23 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006082/13.45, allocations: 89.5 kB / 4.251 GB, free: 20.23 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.001418/13.45, allocations: 289.8 kB / 4.252 GB, free: 20.04 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009824/13.46, allocations: 208 kB / 4.252 GB, free: 19.94 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02214/13.48, allocations: 7.448 MB / 4.259 GB, free: 19.22 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001643/13.48, allocations: 81.45 kB / 4.259 GB, free: 19.22 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.674e-05/13.48, allocations: 4.625 kB / 4.259 GB, free: 19.22 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01174/13.49, allocations: 6.512 MB / 4.266 GB, free: 18.36 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01923/13.51, allocations: 10.38 MB / 4.276 GB, free: 17.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.559e-05/13.51, allocations: 0 / 4.276 GB, free: 17.65 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00271/13.51, allocations: 346 kB / 4.276 GB, free: 17.64 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00483/13.52, allocations: 1.581 MB / 4.278 GB, free: 17.57 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004717/13.52, allocations: 61.42 kB / 4.278 GB, free: 17.57 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003668/13.52, allocations: 3.474 MB / 4.281 GB, free: 15.48 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/13.52, allocations: 5.844 kB / 4.281 GB, free: 15.48 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01299/13.53, allocations: 7.07 MB / 4.288 GB, free: 14.88 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002351/13.54, allocations: 0.7347 MB / 4.289 GB, free: 14.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007028/13.54, allocations: 41.16 kB / 4.289 GB, free: 14.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002846/13.54, allocations: 198.5 kB / 4.289 GB, free: 14.55 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004414/13.54, allocations: 142.9 kB / 4.289 GB, free: 14.55 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002263/13.54, allocations: 67.11 kB / 4.289 GB, free: 14.55 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002608/13.54, allocations: 1.258 MB / 4.29 GB, free: 14.39 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6.82e-07/13.54, allocations: 0 / 4.29 GB, free: 14.39 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01237/13.56, allocations: 2.735 MB / 4.293 GB, free: 13.99 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (166): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01569/13.57, allocations: 2.891 MB / 4.296 GB, free: 13.39 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01165/13.58, allocations: 4.612 MB / 4.3 GB, free: 13.08 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/13.58, allocations: 0 / 4.3 GB, free: 13.08 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.004805/13.59, allocations: 2.229 MB / 4.303 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008259/13.6, allocations: 0.9727 MB / 4.303 GB, free: 12.39 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01229/13.61, allocations: 5.552 MB / 4.309 GB, free: 10.14 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002209/13.61, allocations: 2.143 MB / 4.311 GB, free: 9.273 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001269/13.61, allocations: 185.9 kB / 4.311 GB, free: 9.254 MB / 0.5573 GB Notification: Performance of SimCode: time 1.372e-06/13.61, allocations: 0 / 4.311 GB, free: 9.254 MB / 0.5573 GB Notification: Performance of Templates: time 0.6607/14.27, allocations: 113.5 MB / 4.422 GB, free: 63.11 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1)