Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",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.001046/0.001046, allocations: 180.5 kB / 14.15 MB, free: 1.176 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.422/1.422, allocations: 221.3 MB / 236 MB, free: 2.898 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 91.98 kB / 287 MB, free: 176 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2063/0.2063, allocations: 44.15 MB / 382 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.07e-05/4.072e-05, allocations: 8.203 kB / 451.9 MB, free: 9.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1649, allocations: 61.91 MB / 0.5018 GB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.76/8.925, allocations: 2.847 GB / 3.349 GB, free: 89.09 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004023/8.926, allocations: 85.02 kB / 3.349 GB, free: 89.01 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.422/12.35, allocations: 0.812 GB / 4.161 GB, free: 33.77 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.273e-06/12.35, allocations: 0 / 4.161 GB, free: 33.77 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001914/12.35, allocations: 63.59 kB / 4.161 GB, free: 33.76 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01575/12.36, allocations: 3.663 MB / 4.164 GB, free: 31.96 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/12.36, allocations: 20.12 kB / 4.164 GB, free: 31.95 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001367/12.37, allocations: 265 kB / 4.165 GB, free: 31.91 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006425/12.37, allocations: 0.7813 MB / 4.165 GB, free: 31.78 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007195/12.38, allocations: 1.991 MB / 4.167 GB, free: 31.34 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003051/12.38, allocations: 167.2 kB / 4.168 GB, free: 31.33 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001072/12.38, allocations: 183 kB / 4.168 GB, free: 31.33 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01043/12.39, allocations: 3.343 MB / 4.171 GB, free: 30.84 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001218/12.39, allocations: 1.875 kB / 4.171 GB, free: 30.84 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007768/12.39, allocations: 81.83 kB / 4.171 GB, free: 30.84 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002829/12.39, allocations: 152.5 kB / 4.171 GB, free: 30.84 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007899/12.4, allocations: 3.067 MB / 4.174 GB, free: 30.82 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.02349/12.42, allocations: 13.83 MB / 4.188 GB, free: 22.56 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004454/12.43, allocations: 1.997 MB / 4.19 GB, free: 22.52 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001533/12.43, allocations: 1.063 MB / 4.191 GB, free: 22.5 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04521/12.48, allocations: 24.67 MB / 4.215 GB, free: 23.04 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004895/12.48, allocations: 1.636 MB / 4.216 GB, free: 22.9 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001622/12.48, allocations: 179.4 kB / 4.217 GB, free: 22.82 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 6.582e-06/12.48, allocations: 0 / 4.217 GB, free: 22.82 MB / 0.5573 GB Notification: Performance of matching and sorting (n=167): time 0.01727/12.5, allocations: 7.053 MB / 4.223 GB, free: 21.82 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001529/12.5, allocations: 252.4 kB / 4.224 GB, free: 21.54 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002064/12.5, allocations: 1.313 MB / 4.225 GB, free: 21.36 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000266/12.5, allocations: 58.27 kB / 4.225 GB, free: 21.33 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007067/12.5, allocations: 0.8756 MB / 4.226 GB, free: 21 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004454/12.5, allocations: 0.5489 MB / 4.226 GB, free: 20.65 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/12.5, allocations: 38.06 kB / 4.226 GB, free: 20.65 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001647/12.5, allocations: 376.6 kB / 4.227 GB, free: 20.34 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001353/12.5, allocations: 0.9295 MB / 4.228 GB, free: 20.2 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001544/12.51, allocations: 1.344 MB / 4.229 GB, free: 19.42 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001525/12.51, allocations: 1.158 MB / 4.23 GB, free: 18.95 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/12.51, allocations: 0 / 4.23 GB, free: 18.95 MB / 0.5573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005202/12.51, allocations: 2.992 MB / 4.233 GB, free: 17.82 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001394/12.51, allocations: 3.848 MB / 4.237 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.847e-05/12.51, allocations: 10.69 kB / 4.237 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002289/12.52, allocations: 0.5099 MB / 4.237 GB, free: 13.55 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002008/12.52, allocations: 451.5 kB / 4.238 GB, free: 13.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001951/12.52, allocations: 2.7 MB / 4.24 GB, free: 11.18 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002913/12.52, allocations: 266.9 kB / 4.241 GB, free: 11.12 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003111/12.52, allocations: 92.42 kB / 4.241 GB, free: 11.11 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/12.52, allocations: 7.125 kB / 4.241 GB, free: 11.1 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004167/12.53, allocations: 2.623 MB / 4.243 GB, free: 10.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.744e-05/12.53, allocations: 10.91 kB / 4.243 GB, free: 10.12 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000558/12.53, allocations: 193.7 kB / 4.244 GB, free: 10.06 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001747/12.53, allocations: 462.7 kB / 4.244 GB, free: 10.01 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001132/12.53, allocations: 1.881 MB / 4.246 GB, free: 8.32 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002503/12.53, allocations: 252.3 kB / 4.246 GB, free: 8.262 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001987/12.53, allocations: 91.08 kB / 4.246 GB, free: 8.246 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 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0006651/12.54, allocations: 295.1 kB / 4.246 GB, free: 7.984 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003689/12.54, allocations: 194.6 kB / 4.247 GB, free: 7.887 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008749/12.54, allocations: 7.454 MB / 4.254 GB, free: 3.055 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.83e-05/12.54, allocations: 82.55 kB / 4.254 GB, free: 3.008 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/12.54, allocations: 1.031 kB / 4.254 GB, free: 3.008 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007435/12.55, allocations: 6.509 MB / 4.26 GB, free: 12.91 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01676/12.57, allocations: 11.24 MB / 4.271 GB, free: 3.129 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-05/12.57, allocations: 4 kB / 4.271 GB, free: 3.125 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001453/12.57, allocations: 363.3 kB / 4.272 GB, free: 2.828 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002632/12.57, allocations: 1.299 MB / 4.273 GB, free: 1.742 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002552/12.57, allocations: 66.84 kB / 4.273 GB, free: 1.684 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4736/13.05, allocations: 3.18 MB / 4.276 GB, free: 62.75 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-05/13.05, allocations: 8.062 kB / 4.276 GB, free: 62.75 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01175/13.06, allocations: 7.289 MB / 4.283 GB, free: 61.71 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002218/13.06, allocations: 0.7299 MB / 4.284 GB, free: 61.61 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005289/13.06, allocations: 56.16 kB / 4.284 GB, free: 61.61 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001704/13.06, allocations: 192 kB / 4.284 GB, free: 61.61 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003727/13.06, allocations: 155.2 kB / 4.284 GB, free: 61.61 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000192/13.06, allocations: 79.55 kB / 4.284 GB, free: 61.61 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002317/13.07, allocations: 1.194 MB / 4.286 GB, free: 61.45 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.423e-06/13.07, allocations: 0 / 4.286 GB, free: 61.45 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01448/13.08, allocations: 2.595 MB / 4.288 GB, free: 61.45 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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,$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.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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 (179): * Single equations (assignments): 153 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.03137/13.11, allocations: 11.31 MB / 4.299 GB, free: 58.59 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.008779/13.12, allocations: 4.671 MB / 4.304 GB, free: 58.25 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/13.12, allocations: 3 kB / 4.304 GB, free: 58.25 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004193/13.12, allocations: 2.441 MB / 4.306 GB, free: 58.12 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006792/13.13, allocations: 0.9197 MB / 4.307 GB, free: 58.1 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0233/13.16, allocations: 6.965 MB / 4.314 GB, free: 56.81 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003132/13.16, allocations: 2.186 MB / 4.316 GB, free: 56.05 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.007213/13.17, allocations: 2.472 MB / 4.318 GB, free: 56.01 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002495/13.17, allocations: 1.202 MB / 4.32 GB, free: 56 MB / 0.573 GB Notification: Performance of SimCode: time 1.823e-06/13.17, allocations: 0.6562 kB / 4.32 GB, free: 56 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2107/13.38, allocations: 116.5 MB / 4.433 GB, free: 36.95 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001752/13.38, allocations: 226.3 kB / 4.433 GB, free: 36.69 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.194/19.57, allocations: 0 / 4.433 GB, free: 36.69 MB / 0.573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat