Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 176.6 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.566/1.566, allocations: 223.2 MB / 241 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 90.27 kB / 292.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4039/0.4039, allocations: 44.22 MB / 387.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003534/0.0003535, allocations: 12 kB / 460 MB, free: 1.414 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3936/0.394, allocations: 61.89 MB / 0.5096 GB, free: 38.01 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.145/7.539, allocations: 2.83 GB / 3.34 GB, free: 18.41 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/7.539, allocations: 91.91 kB / 3.34 GB, free: 18.33 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.447/10.99, allocations: 0.8105 GB / 4.15 GB, free: 22.27 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.104e-06/10.99, allocations: 0 / 4.15 GB, free: 22.27 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000209/10.99, allocations: 67.92 kB / 4.15 GB, free: 22.21 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01769/11, allocations: 4.255 MB / 4.155 GB, free: 17.87 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/11, allocations: 12.03 kB / 4.155 GB, free: 17.86 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001229/11.01, allocations: 299.1 kB / 4.155 GB, free: 17.55 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006242/11.01, allocations: 0.8374 MB / 4.156 GB, free: 16.71 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006086/11.02, allocations: 2.11 MB / 4.158 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001639/11.02, allocations: 176.1 kB / 4.158 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004552/11.02, allocations: 207.8 kB / 4.158 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007234/11.03, allocations: 3.733 MB / 4.162 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.777e-05/11.03, allocations: 7.938 kB / 4.162 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002666/11.03, allocations: 91.95 kB / 4.162 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001852/11.03, allocations: 167.6 kB / 4.162 GB, free: 9.973 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006882/11.03, allocations: 3.559 MB / 4.165 GB, free: 6.41 MB / 0.5417 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.02177/11.05, allocations: 14.94 MB / 4.18 GB, free: 6.242 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005499/11.06, allocations: 2.236 MB / 4.182 GB, free: 3.996 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5266/11.59, allocations: 24.53 MB / 4.206 GB, free: 32.77 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00461/11.59, allocations: 1.707 MB / 4.208 GB, free: 32.66 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001652/11.59, allocations: 200.2 kB / 4.208 GB, free: 32.66 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=162): time 6.883e-06/11.59, allocations: 0 / 4.208 GB, free: 32.66 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.02408/11.62, allocations: 9.374 MB / 4.217 GB, free: 31.57 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/11.62, allocations: 413.8 kB / 4.218 GB, free: 31.1 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002522/11.62, allocations: 1.568 MB / 4.219 GB, free: 30.89 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000286/11.62, allocations: 55.58 kB / 4.219 GB, free: 30.86 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008876/11.62, allocations: 0.9852 MB / 4.22 GB, free: 30.57 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005772/11.62, allocations: 0.5847 MB / 4.221 GB, free: 30.28 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001414/11.62, allocations: 40.28 kB / 4.221 GB, free: 30.28 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001181/11.62, allocations: 389.6 kB / 4.221 GB, free: 29.98 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002017/11.62, allocations: 1.176 MB / 4.222 GB, free: 29.97 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002228/11.63, allocations: 1.618 MB / 4.224 GB, free: 29.51 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002475/11.63, allocations: 1.42 MB / 4.225 GB, free: 29.43 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.164e-05/11.63, allocations: 6.406 kB / 4.225 GB, free: 29.43 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.007189/11.64, allocations: 3.596 MB / 4.229 GB, free: 29.14 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008541/11.64, allocations: 4.062 MB / 4.233 GB, free: 24.92 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.703e-05/11.64, allocations: 15.47 kB / 4.233 GB, free: 24.92 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005055/11.64, allocations: 0.9793 MB / 4.234 GB, free: 24.88 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002418/11.64, allocations: 469 kB / 4.234 GB, free: 24.88 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002419/11.65, allocations: 3.159 MB / 4.237 GB, free: 22.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003059/11.65, allocations: 243.1 kB / 4.237 GB, free: 22.79 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003052/11.65, allocations: 101.4 kB / 4.238 GB, free: 22.79 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/11.65, allocations: 10.14 kB / 4.238 GB, free: 22.79 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006524/11.66, allocations: 3.263 MB / 4.241 GB, free: 22.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.982e-05/11.66, allocations: 11.84 kB / 4.241 GB, free: 22.64 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001449/11.66, allocations: 368.5 kB / 4.241 GB, free: 22.61 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002197/11.66, allocations: 496.1 kB / 4.242 GB, free: 22.61 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003758/11.66, allocations: 4.103 MB / 4.246 GB, free: 19.79 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002922/11.67, allocations: 234.3 kB / 4.246 GB, free: 19.78 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005065/11.67, allocations: 105.8 kB / 4.246 GB, free: 19.78 MB / 0.5573 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,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) * Number of discrete states: 0 () * Number of clocked 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.002273/11.67, allocations: 0.7605 MB / 4.247 GB, free: 19.52 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008284/11.67, allocations: 220.8 kB / 4.247 GB, free: 19.41 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01382/11.69, allocations: 7.969 MB / 4.255 GB, free: 18.75 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001041/11.69, allocations: 82.97 kB / 4.255 GB, free: 18.75 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-05/11.69, allocations: 0 / 4.255 GB, free: 18.75 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01057/11.7, allocations: 6.978 MB / 4.262 GB, free: 17.83 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01685/11.71, allocations: 11.1 MB / 4.272 GB, free: 17.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/11.71, allocations: 3.531 kB / 4.272 GB, free: 17.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001432/11.71, allocations: 356 kB / 4.273 GB, free: 17.1 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004689/11.72, allocations: 2.17 MB / 4.275 GB, free: 17 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003171/11.72, allocations: 63.94 kB / 4.275 GB, free: 17 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003639/11.72, allocations: 4.102 MB / 4.279 GB, free: 14.89 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/11.72, allocations: 2.375 kB / 4.279 GB, free: 14.89 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0109/11.73, allocations: 8.112 MB / 4.287 GB, free: 14.2 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002238/11.74, allocations: 0.781 MB / 4.288 GB, free: 13.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004145/11.74, allocations: 52.94 kB / 4.288 GB, free: 13.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001522/11.74, allocations: 197.3 kB / 4.288 GB, free: 13.92 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002822/11.74, allocations: 147.1 kB / 4.288 GB, free: 13.92 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000149/11.74, allocations: 72.89 kB / 4.288 GB, free: 13.92 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.00197/11.74, allocations: 1.394 MB / 4.289 GB, free: 13.77 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.41e-07/11.74, allocations: 0 / 4.289 GB, free: 13.77 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01254/11.75, allocations: 2.866 MB / 4.292 GB, free: 13.66 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$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) * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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.02323/11.78, allocations: 10.67 MB / 4.303 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.009343/11.79, allocations: 5.594 MB / 4.308 GB, free: 11.68 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/11.79, allocations: 2.688 kB / 4.308 GB, free: 11.68 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003219/11.79, allocations: 2.44 MB / 4.31 GB, free: 11.53 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004789/11.79, allocations: 0.9526 MB / 4.311 GB, free: 11.52 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02374/11.82, allocations: 17.75 MB / 4.329 GB, free: 15.73 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002673/11.82, allocations: 2.304 MB / 4.331 GB, free: 14.87 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.005848/11.83, allocations: 2.239 MB / 4.333 GB, free: 14.8 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002754/11.83, allocations: 1.314 MB / 4.334 GB, free: 13.74 MB / 0.573 GB Notification: Performance of SimCode: time 2.053e-06/11.83, allocations: 0 / 4.334 GB, free: 13.74 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6131/12.44, allocations: 118.2 MB / 4.45 GB, free: 75.26 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002311/12.44, allocations: 260.2 kB / 4.45 GB, free: 74.9 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.748/19.19, allocations: 3.094 kB / 4.45 GB, free: 74.9 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat