Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002494/0.002494, allocations: 182.1 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.079/2.079, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001105/0.001104, allocations: 94.64 kB / 267.5 MB, free: 14.04 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.2892/0.2892, allocations: 43.5 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.729e-05/3.731e-05, allocations: 4 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1359, allocations: 58.84 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.761/8.897, allocations: 2.846 GB / 3.319 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003428/8.898, allocations: 87.41 kB / 3.319 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.653/13.55, allocations: 0.9077 GB / 4.227 GB, free: 36.57 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.725e-06/13.55, allocations: 1.312 kB / 4.227 GB, free: 36.57 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000314/13.55, allocations: 65.5 kB / 4.227 GB, free: 36.56 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01848/13.57, allocations: 3.972 MB / 4.231 GB, free: 34.84 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/13.57, allocations: 15.06 kB / 4.231 GB, free: 34.83 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001264/13.57, allocations: 301 kB / 4.231 GB, free: 34.78 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009152/13.58, allocations: 0.8834 MB / 4.232 GB, free: 34.64 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008482/13.59, allocations: 2.081 MB / 4.234 GB, free: 34.2 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003652/13.59, allocations: 186.3 kB / 4.234 GB, free: 34.2 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00108/13.59, allocations: 207.7 kB / 4.235 GB, free: 34.19 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01196/13.6, allocations: 3.649 MB / 4.238 GB, free: 33.64 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-05/13.6, allocations: 9.016 kB / 4.238 GB, free: 33.64 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005029/13.6, allocations: 92.92 kB / 4.238 GB, free: 33.64 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003176/13.6, allocations: 169.2 kB / 4.238 GB, free: 33.63 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.011/13.61, allocations: 3.212 MB / 4.241 GB, free: 33.62 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.0316/13.65, allocations: 15.63 MB / 4.257 GB, free: 24.18 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008119/13.65, allocations: 2.715 MB / 4.259 GB, free: 23.57 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002945/13.66, allocations: 1.169 MB / 4.261 GB, free: 23.55 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07785/13.73, allocations: 24.56 MB / 4.285 GB, free: 24.36 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006161/13.74, allocations: 1.733 MB / 4.286 GB, free: 24.22 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=173): time 6.822e-06/13.74, allocations: 3.141 kB / 4.286 GB, free: 24.22 MB / 0.5573 GB Notification: Performance of matching and sorting (n=189): time 0.03343/13.77, allocations: 7.88 MB / 4.294 GB, free: 23.11 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000186/13.77, allocations: 262.4 kB / 4.294 GB, free: 22.83 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003087/13.78, allocations: 1.407 MB / 4.296 GB, free: 22.64 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006857/13.78, allocations: 61.14 kB / 4.296 GB, free: 22.61 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001102/13.78, allocations: 0.9023 MB / 4.296 GB, free: 22.17 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001106/13.78, allocations: 0.626 MB / 4.297 GB, free: 21.77 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002493/13.78, allocations: 44.28 kB / 4.297 GB, free: 21.77 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000254/13.78, allocations: 394.1 kB / 4.298 GB, free: 21.46 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002818/13.78, allocations: 1.034 MB / 4.299 GB, free: 21.45 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003538/13.79, allocations: 1.488 MB / 4.3 GB, free: 20.98 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003456/13.79, allocations: 1.281 MB / 4.301 GB, free: 20.88 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.57e-05/13.79, allocations: 3.344 kB / 4.301 GB, free: 20.88 MB / 0.5573 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.009079/13.8, allocations: 3.019 MB / 4.304 GB, free: 20.63 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001836/13.8, allocations: 4.332 MB / 4.308 GB, free: 16 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.989e-05/13.8, allocations: 11.47 kB / 4.308 GB, free: 16 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001377/13.8, allocations: 236.4 kB / 4.309 GB, free: 15.92 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004526/13.81, allocations: 0.5299 MB / 4.309 GB, free: 15.86 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002221/13.81, allocations: 2.429 MB / 4.312 GB, free: 13.63 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005076/13.82, allocations: 305.2 kB / 4.312 GB, free: 13.56 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007655/13.82, allocations: 107.2 kB / 4.312 GB, free: 13.54 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/13.82, allocations: 3.188 kB / 4.312 GB, free: 13.54 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008362/13.82, allocations: 2.88 MB / 4.315 GB, free: 12.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.661e-05/13.82, allocations: 10.56 kB / 4.315 GB, free: 12.45 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001152/13.83, allocations: 232.3 kB / 4.315 GB, free: 12.37 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004349/13.83, allocations: 0.5194 MB / 4.315 GB, free: 12.32 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002218/13.83, allocations: 2.431 MB / 4.318 GB, free: 10.08 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004077/13.84, allocations: 302.4 kB / 4.318 GB, free: 10.01 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005945/13.84, allocations: 106.8 kB / 4.318 GB, free: 9.992 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0009397/13.84, allocations: 305.1 kB / 4.319 GB, free: 9.719 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000693/13.84, allocations: 226.2 kB / 4.319 GB, free: 9.605 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01434/13.85, allocations: 7.544 MB / 4.326 GB, free: 6.25 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.45e-05/13.85, allocations: 81.98 kB / 4.326 GB, free: 6.23 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/13.85, allocations: 4 kB / 4.326 GB, free: 6.227 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01143/13.87, allocations: 6.584 MB / 4.333 GB, free: 2.332 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02961/13.89, allocations: 12.28 MB / 4.345 GB, free: 7.652 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.341e-05/13.89, allocations: 4 kB / 4.345 GB, free: 7.648 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00372/13.9, allocations: 443 kB / 4.345 GB, free: 7.289 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002063/13.9, allocations: 351.3 kB / 4.345 GB, free: 7.016 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000566/13.9, allocations: 75.58 kB / 4.345 GB, free: 6.953 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002336/13.9, allocations: 2.522 MB / 4.348 GB, free: 4.418 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.319e-05/13.9, allocations: 11.94 kB / 4.348 GB, free: 4.406 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4614/14.37, allocations: 7.636 MB / 4.355 GB, free: 66.01 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002707/14.37, allocations: 0.7824 MB / 4.356 GB, free: 65.92 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009713/14.37, allocations: 63.78 kB / 4.356 GB, free: 65.92 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003975/14.37, allocations: 220.2 kB / 4.356 GB, free: 65.92 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007114/14.37, allocations: 179.6 kB / 4.357 GB, free: 65.92 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003074/14.37, allocations: 89 kB / 4.357 GB, free: 65.92 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.004116/14.38, allocations: 1.257 MB / 4.358 GB, free: 65.76 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.122e-06/14.38, allocations: 2.125 kB / 4.358 GB, free: 65.76 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01494/14.39, allocations: 2.775 MB / 4.361 GB, free: 65.76 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.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,junctionIdeal.medium.phase) * 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 (214): * Single equations (assignments): 185 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03379/14.43, allocations: 12.23 MB / 4.373 GB, free: 62.68 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01436/14.44, allocations: 5.095 MB / 4.378 GB, free: 62.34 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/14.44, allocations: 0 / 4.378 GB, free: 62.34 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.006556/14.45, allocations: 2.665 MB / 4.38 GB, free: 62.2 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01035/14.46, allocations: 1.058 MB / 4.381 GB, free: 62.17 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02511/14.48, allocations: 7.57 MB / 4.389 GB, free: 60.82 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003102/14.49, allocations: 2.243 MB / 4.391 GB, free: 60.07 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003425/14.49, allocations: 1.348 MB / 4.392 GB, free: 60.07 MB / 0.573 GB Notification: Performance of SimCode: time 1.754e-06/14.49, allocations: 1.812 kB / 4.392 GB, free: 60.07 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.177/19.67, allocations: 132.9 MB / 4.522 GB, free: 31.71 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1)