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.00225/0.00225, allocations: 181.3 kB / 8.366 MB, free: 0.7109 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.009/2.009, allocations: 205.3 MB / 214.1 MB, free: 14.12 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.001138/0.001138, allocations: 91.05 kB / 262.1 MB, free: 13.86 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.2925/0.2925, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.406e-05/2.404e-05, allocations: 224 / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.45/0.45, allocations: 58.86 MB / 477.1 MB, free: 5.262 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.674/9.124, allocations: 2.825 GB / 3.291 GB, free: 102.9 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/9.125, allocations: 76.58 kB / 3.291 GB, free: 102.9 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 4.344/13.47, allocations: 0.8606 GB / 4.152 GB, free: 37.56 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.164e-06/13.47, allocations: 1.219 kB / 4.152 GB, free: 37.56 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0002667/13.47, allocations: 61.42 kB / 4.152 GB, free: 37.55 MB / 0.5265 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.01749/13.49, allocations: 3.817 MB / 4.156 GB, free: 35.63 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/13.49, allocations: 9.906 kB / 4.156 GB, free: 35.63 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008349/13.49, allocations: 0.7797 MB / 4.156 GB, free: 35.5 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008458/13.5, allocations: 1.943 MB / 4.158 GB, free: 35.01 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002516/13.5, allocations: 78.48 kB / 4.158 GB, free: 35.01 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009204/13.5, allocations: 113.2 kB / 4.158 GB, free: 35 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006956/13.51, allocations: 2.347 MB / 4.161 GB, free: 35 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007688/13.52, allocations: 2.58 MB / 4.163 GB, free: 34.52 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.16e-05/13.52, allocations: 7.531 kB / 4.163 GB, free: 34.52 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003336/13.52, allocations: 7.594 kB / 4.163 GB, free: 34.52 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000293/13.52, allocations: 149.5 kB / 4.163 GB, free: 34.51 MB / 0.5265 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.8541/14.37, allocations: 124.9 MB / 4.285 GB, free: 45.12 MB / 0.5577 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003382/14.38, allocations: 1.431 MB / 4.287 GB, free: 45.09 MB / 0.5577 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001982/14.38, allocations: 0.9031 MB / 4.288 GB, free: 45.08 MB / 0.5577 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05032/14.43, allocations: 17 MB / 4.304 GB, free: 34.57 MB / 0.5577 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002493/14.43, allocations: 1.126 MB / 4.305 GB, free: 34.41 MB / 0.5577 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001584/14.43, allocations: 141.6 kB / 4.305 GB, free: 34.41 MB / 0.5577 GB Notification: Performance of pre-optimization done (n=136): time 5.29e-06/14.43, allocations: 4 kB / 4.305 GB, free: 34.4 MB / 0.5577 GB Notification: Performance of matching and sorting (n=148): time 0.0288/14.46, allocations: 7.356 MB / 4.313 GB, free: 32.93 MB / 0.5577 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/14.46, allocations: 362.7 kB / 4.313 GB, free: 32.52 MB / 0.5577 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002225/14.47, allocations: 1.07 MB / 4.314 GB, free: 32.36 MB / 0.5577 GB Notification: Performance of collectPreVariables (initialization): time 0.000469/14.47, allocations: 32.17 kB / 4.314 GB, free: 32.33 MB / 0.5577 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009041/14.47, allocations: 0.901 MB / 4.315 GB, free: 31.95 MB / 0.5577 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007937/14.47, allocations: 494.3 kB / 4.315 GB, free: 31.7 MB / 0.5577 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/14.47, allocations: 0 / 4.315 GB, free: 31.7 MB / 0.5577 GB Notification: Performance of setup shared object (initialization): time 0.000143/14.47, allocations: 387 kB / 4.316 GB, free: 31.38 MB / 0.5577 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002112/14.47, allocations: 0.9144 MB / 4.317 GB, free: 31.38 MB / 0.5577 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002495/14.47, allocations: 1.274 MB / 4.318 GB, free: 31 MB / 0.5577 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01907/14.49, allocations: 2.665 MB / 4.321 GB, free: 30.93 MB / 0.5577 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.44e-05/14.49, allocations: 3.656 kB / 4.321 GB, free: 30.93 MB / 0.5577 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.02475/14.52, allocations: 4.312 MB / 4.325 GB, free: 30.75 MB / 0.5577 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008482/14.52, allocations: 3.732 MB / 4.328 GB, free: 26.83 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-05/14.52, allocations: 14.12 kB / 4.328 GB, free: 26.83 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003876/14.52, allocations: 0.5215 MB / 4.329 GB, free: 26.79 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003537/14.52, allocations: 435.2 kB / 4.329 GB, free: 26.79 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003607/14.53, allocations: 2.935 MB / 4.332 GB, free: 24.7 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004214/14.53, allocations: 240.2 kB / 4.332 GB, free: 24.67 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000629/14.53, allocations: 93.72 kB / 4.332 GB, free: 24.67 MB / 0.5577 GB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/14.53, allocations: 1.906 kB / 4.332 GB, free: 24.67 MB / 0.5577 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02214/14.56, allocations: 3.871 MB / 4.336 GB, free: 24.56 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.471e-05/14.56, allocations: 10.06 kB / 4.336 GB, free: 24.56 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006657/14.56, allocations: 188.3 kB / 4.336 GB, free: 24.53 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003704/14.56, allocations: 447 kB / 4.337 GB, free: 24.53 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001529/14.56, allocations: 1.894 MB / 4.339 GB, free: 22.97 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00326/14.56, allocations: 213.6 kB / 4.339 GB, free: 22.95 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003389/14.57, allocations: 90.28 kB / 4.339 GB, free: 22.95 MB / 0.5577 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,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,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.0007297/14.57, allocations: 229.9 kB / 4.339 GB, free: 22.77 MB / 0.5577 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005977/14.57, allocations: 174 kB / 4.339 GB, free: 22.68 MB / 0.5577 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01468/14.58, allocations: 6.401 MB / 4.346 GB, free: 22.15 MB / 0.5577 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.463e-05/14.58, allocations: 68.58 kB / 4.346 GB, free: 22.15 MB / 0.5577 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/14.58, allocations: 0 / 4.346 GB, free: 22.15 MB / 0.5577 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01122/14.59, allocations: 5.401 MB / 4.351 GB, free: 21.41 MB / 0.5577 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01983/14.61, allocations: 8.623 MB / 4.359 GB, free: 20.87 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.39e-05/14.61, allocations: 7.953 kB / 4.359 GB, free: 20.86 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002432/14.62, allocations: 287.9 kB / 4.36 GB, free: 20.86 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00381/14.62, allocations: 1.498 MB / 4.361 GB, free: 20.78 MB / 0.5577 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000409/14.62, allocations: 36.06 kB / 4.361 GB, free: 20.78 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003907/14.62, allocations: 3.694 MB / 4.365 GB, free: 18.66 MB / 0.5577 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/14.62, allocations: 3.047 kB / 4.365 GB, free: 18.66 MB / 0.5577 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01336/14.64, allocations: 6.49 MB / 4.371 GB, free: 18.05 MB / 0.5577 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002104/14.64, allocations: 0.6659 MB / 4.372 GB, free: 17.77 MB / 0.5577 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000532/14.64, allocations: 15.81 kB / 4.372 GB, free: 17.77 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002479/14.64, allocations: 150.7 kB / 4.372 GB, free: 17.75 MB / 0.5577 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003375/14.64, allocations: 115.9 kB / 4.372 GB, free: 17.75 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002087/14.64, allocations: 72.39 kB / 4.372 GB, free: 17.75 MB / 0.5577 GB Notification: Performance of sorting global known variables: time 0.001986/14.64, allocations: 1.046 MB / 4.373 GB, free: 17.64 MB / 0.5577 GB Notification: Performance of sort global known variables: time 5.31e-07/14.64, allocations: 0 / 4.373 GB, free: 17.64 MB / 0.5577 GB Notification: Performance of remove unused functions: time 0.0115/14.66, allocations: 2.614 MB / 4.376 GB, free: 17.52 MB / 0.5577 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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 (149): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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.01479/14.67, allocations: 3.057 MB / 4.379 GB, free: 17.07 MB / 0.5577 GB Notification: Performance of simCode: created initialization part: time 0.00979/14.68, allocations: 4.26 MB / 4.383 GB, free: 16.77 MB / 0.5577 GB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/14.68, allocations: 0 / 4.383 GB, free: 16.77 MB / 0.5577 GB Notification: Performance of simCode: created simulation system equations: time 0.003967/14.68, allocations: 1.978 MB / 4.385 GB, free: 16.63 MB / 0.5577 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006934/14.69, allocations: 0.8059 MB / 4.386 GB, free: 16.58 MB / 0.5577 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01134/14.7, allocations: 5.024 MB / 4.39 GB, free: 15.36 MB / 0.5577 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001824/14.7, allocations: 2.046 MB / 4.392 GB, free: 14.58 MB / 0.5577 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001186/14.71, allocations: 181.6 kB / 4.393 GB, free: 14.57 MB / 0.5577 GB Notification: Performance of SimCode: time 1.352e-06/14.71, allocations: 0 / 4.393 GB, free: 14.57 MB / 0.5577 GB Notification: Performance of Templates: time 0.6552/15.36, allocations: 107.3 MB / 4.497 GB, free: 84.61 MB / 0.5733 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)