Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",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.001579/0.001579, allocations: 177.4 kB / 8.007 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.752/1.752, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008685/0.0008687, allocations: 78.7 kB / 261.7 MB, free: 1.684 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.2251/0.2251, allocations: 43.49 MB / 353.2 MB, free: 288 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.103e-05/2.105e-05, allocations: 4 kB / 418.4 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1334, allocations: 58.85 MB / 477.2 MB, free: 1.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.612/8.746, allocations: 2.825 GB / 3.291 GB, free: 132 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/8.746, allocations: 82.8 kB / 3.291 GB, free: 131.9 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.436/12.18, allocations: 0.7928 GB / 4.083 GB, free: 39.95 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.994e-06/12.18, allocations: 3.562 kB / 4.083 GB, free: 39.95 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000236/12.18, allocations: 65.94 kB / 4.084 GB, free: 39.93 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01943/12.2, allocations: 3.959 MB / 4.087 GB, free: 37.98 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 7.56e-05/12.2, allocations: 9.594 kB / 4.087 GB, free: 37.98 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007535/12.21, allocations: 0.8386 MB / 4.088 GB, free: 37.84 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006232/12.22, allocations: 2.086 MB / 4.09 GB, free: 37.38 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001671/12.22, allocations: 100.9 kB / 4.09 GB, free: 37.38 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006611/12.22, allocations: 118.4 kB / 4.09 GB, free: 37.37 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004836/12.22, allocations: 2.89 MB / 4.093 GB, free: 37.36 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004405/12.23, allocations: 2.892 MB / 4.096 GB, free: 36.81 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.237e-05/12.23, allocations: 6.188 kB / 4.096 GB, free: 36.81 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002243/12.23, allocations: 6.906 kB / 4.096 GB, free: 36.81 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000196/12.23, allocations: 166 kB / 4.096 GB, free: 36.8 MB / 0.5261 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.6653/12.89, allocations: 125.6 MB / 4.219 GB, free: 84.79 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002592/12.89, allocations: 1.6 MB / 4.22 GB, free: 84.77 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001607/12.9, allocations: 1.008 MB / 4.221 GB, free: 84.76 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03553/12.93, allocations: 17 MB / 4.238 GB, free: 74.25 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003035/12.93, allocations: 1.249 MB / 4.239 GB, free: 74.1 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001857/12.94, allocations: 161 kB / 4.239 GB, free: 74.1 MB / 0.573 GB Notification: Performance of pre-optimization done (n=152): time 6.592e-06/12.94, allocations: 3.406 kB / 4.239 GB, free: 74.1 MB / 0.573 GB Notification: Performance of matching and sorting (n=164): time 0.02201/12.96, allocations: 8.081 MB / 4.247 GB, free: 72.54 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001774/12.96, allocations: 0.5038 MB / 4.248 GB, free: 71.95 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001829/12.96, allocations: 1.203 MB / 4.249 GB, free: 71.78 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003291/12.96, allocations: 31.23 kB / 4.249 GB, free: 71.75 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008741/12.96, allocations: 1.021 MB / 4.25 GB, free: 71.41 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005899/12.96, allocations: 0.5308 MB / 4.251 GB, free: 71.14 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/12.96, allocations: 3.156 kB / 4.251 GB, free: 71.14 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001466/12.96, allocations: 386.1 kB / 4.251 GB, free: 70.83 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00141/12.96, allocations: 1.054 MB / 4.252 GB, free: 70.83 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001573/12.97, allocations: 1.489 MB / 4.253 GB, free: 70.38 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01047/12.98, allocations: 2.85 MB / 4.256 GB, free: 70.35 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-05/12.98, allocations: 5.906 kB / 4.256 GB, free: 70.35 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01532/12.99, allocations: 4.797 MB / 4.261 GB, free: 70.14 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009125/12.99, allocations: 3.987 MB / 4.265 GB, free: 66.09 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.919e-05/12.99, allocations: 15.02 kB / 4.265 GB, free: 66.09 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00324/13, allocations: 0.8023 MB / 4.266 GB, free: 66.06 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002036/13, allocations: 469.7 kB / 4.266 GB, free: 66.06 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002939/13, allocations: 3.323 MB / 4.269 GB, free: 63.96 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002975/13, allocations: 240 kB / 4.269 GB, free: 63.95 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002975/13, allocations: 106.5 kB / 4.27 GB, free: 63.95 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/13, allocations: 3 kB / 4.27 GB, free: 63.95 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01399/13.02, allocations: 4.285 MB / 4.274 GB, free: 63.87 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.032e-05/13.02, allocations: 15.53 kB / 4.274 GB, free: 63.87 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/13.02, allocations: 342.9 kB / 4.274 GB, free: 63.84 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002088/13.02, allocations: 491.1 kB / 4.275 GB, free: 63.84 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003582/13.02, allocations: 3.992 MB / 4.278 GB, free: 61.07 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003016/13.03, allocations: 210.8 kB / 4.279 GB, free: 61.06 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003339/13.03, allocations: 100 kB / 4.279 GB, free: 61.06 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe1.state_b.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0008137/13.03, allocations: 240.1 kB / 4.279 GB, free: 60.88 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00648/13.04, allocations: 2.739 MB / 4.282 GB, free: 60.69 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006607/13.04, allocations: 197.7 kB / 4.282 GB, free: 60.59 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009809/13.05, allocations: 6.797 MB / 4.289 GB, free: 60.09 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-05/13.05, allocations: 68.48 kB / 4.289 GB, free: 60.09 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/13.05, allocations: 2.531 kB / 4.289 GB, free: 60.09 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007277/13.05, allocations: 5.761 MB / 4.294 GB, free: 59.36 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01459/13.07, allocations: 9.188 MB / 4.303 GB, free: 58.77 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.731e-05/13.07, allocations: 0 / 4.303 GB, free: 58.77 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001279/13.07, allocations: 302.1 kB / 4.303 GB, free: 58.77 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003841/13.07, allocations: 2.339 MB / 4.306 GB, free: 58.68 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002297/13.07, allocations: 39.23 kB / 4.306 GB, free: 58.68 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003639/13.08, allocations: 4.417 MB / 4.31 GB, free: 56.55 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/13.08, allocations: 2.094 kB / 4.31 GB, free: 56.55 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009746/13.09, allocations: 7.228 MB / 4.317 GB, free: 55.91 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001787/13.09, allocations: 0.7118 MB / 4.318 GB, free: 55.62 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003851/13.09, allocations: 19.81 kB / 4.318 GB, free: 55.62 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001463/13.09, allocations: 158.9 kB / 4.318 GB, free: 55.6 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002666/13.09, allocations: 129.3 kB / 4.318 GB, free: 55.6 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001469/13.09, allocations: 74.22 kB / 4.318 GB, free: 55.6 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001663/13.09, allocations: 1.133 MB / 4.319 GB, free: 55.46 MB / 0.573 GB Notification: Performance of sort global known variables: time 3.11e-07/13.09, allocations: 0 / 4.319 GB, free: 55.46 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01145/13.1, allocations: 2.733 MB / 4.322 GB, free: 55.33 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],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,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.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 (153): * Single equations (assignments): 132 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 15 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.02473/13.13, allocations: 10.18 MB / 4.332 GB, free: 53.75 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.009406/13.14, allocations: 5 MB / 4.337 GB, free: 53.21 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-05/13.14, allocations: 1.75 kB / 4.337 GB, free: 53.21 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003432/13.14, allocations: 2.118 MB / 4.339 GB, free: 53.06 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005266/13.15, allocations: 0.7892 MB / 4.34 GB, free: 53.04 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01715/13.16, allocations: 6.753 MB / 4.346 GB, free: 51.62 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001532/13.17, allocations: 2.212 MB / 4.348 GB, free: 50.85 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.004492/13.17, allocations: 2.463 MB / 4.351 GB, free: 50.82 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001371/13.17, allocations: 1.205 MB / 4.352 GB, free: 50.81 MB / 0.573 GB Notification: Performance of SimCode: time 8.22e-07/13.17, allocations: 0 / 4.352 GB, free: 50.81 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5797/13.75, allocations: 104.1 MB / 4.454 GB, free: 84.01 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001563/13.75, allocations: 170.8 kB / 4.454 GB, free: 83.82 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.819/19.57, allocations: 2.781 kB / 4.454 GB, free: 83.82 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat