Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_3_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.001127/0.001127, allocations: 176 kB / 8.005 MB, free: 1.07 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.826/1.826, 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.001288/0.001288, allocations: 86.62 kB / 261.7 MB, free: 1.688 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.2478/0.2478, allocations: 43.49 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.236e-05/2.269e-05, allocations: 4 kB / 418.4 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1568, allocations: 58.86 MB / 477.2 MB, free: 1.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.641/8.798, allocations: 2.846 GB / 3.312 GB, free: 129.5 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/8.798, allocations: 80.27 kB / 3.312 GB, free: 129.4 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.154/11.95, allocations: 0.8999 GB / 4.212 GB, free: 4.383 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.573e-06/11.95, allocations: 0 / 4.212 GB, free: 4.383 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001939/11.95, allocations: 63.91 kB / 4.212 GB, free: 4.324 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01278/11.97, allocations: 3.972 MB / 4.216 GB, free: 308 kB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/11.97, allocations: 8.031 kB / 4.216 GB, free: 300 kB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006389/11.97, allocations: 0.8807 MB / 4.216 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006145/11.98, allocations: 2.102 MB / 4.218 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/11.98, allocations: 95.98 kB / 4.219 GB, free: 13.2 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000474/11.98, allocations: 120 kB / 4.219 GB, free: 13.08 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005201/11.98, allocations: 2.628 MB / 4.221 GB, free: 10.45 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005796/11.99, allocations: 2.862 MB / 4.224 GB, free: 7.379 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.076e-05/11.99, allocations: 7.938 kB / 4.224 GB, free: 7.371 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002427/11.99, allocations: 8 kB / 4.224 GB, free: 7.363 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000228/11.99, allocations: 163.7 kB / 4.224 GB, free: 7.203 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.6116/12.6, allocations: 126.3 MB / 4.348 GB, free: 14.64 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002979/12.6, allocations: 2.117 MB / 4.35 GB, free: 14.04 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001527/12.61, allocations: 1.072 MB / 4.351 GB, free: 14.02 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03246/12.64, allocations: 16.96 MB / 4.367 GB, free: 18.95 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002236/12.64, allocations: 1.244 MB / 4.368 GB, free: 18.8 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=163): time 4.9e-06/12.64, allocations: 0 / 4.368 GB, free: 18.8 MB / 0.6042 GB Notification: Performance of matching and sorting (n=179): time 0.03496/12.68, allocations: 9.621 MB / 4.378 GB, free: 17.14 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002243/12.68, allocations: 361.6 kB / 4.378 GB, free: 16.73 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001966/12.68, allocations: 1.09 MB / 4.379 GB, free: 16.57 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.000662/12.68, allocations: 25.7 kB / 4.379 GB, free: 16.54 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.00104/12.68, allocations: 1.013 MB / 4.38 GB, free: 16.2 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.001016/12.68, allocations: 0.5759 MB / 4.381 GB, free: 15.89 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/12.68, allocations: 4 kB / 4.381 GB, free: 15.89 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0002505/12.68, allocations: 393.5 kB / 4.381 GB, free: 15.59 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001459/12.68, allocations: 1.01 MB / 4.382 GB, free: 15.58 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001697/12.68, allocations: 1.452 MB / 4.384 GB, free: 15.12 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008315/12.69, allocations: 1.969 MB / 4.386 GB, free: 15.07 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.383e-05/12.69, allocations: 2.75 kB / 4.386 GB, free: 15.07 MB / 0.6042 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01227/12.71, allocations: 3.687 MB / 4.389 GB, free: 14.84 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001781/12.71, allocations: 4.416 MB / 4.393 GB, free: 10.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.056e-05/12.71, allocations: 15.94 kB / 4.393 GB, free: 10.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005625/12.71, allocations: 216.7 kB / 4.394 GB, free: 10.26 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00245/12.71, allocations: 0.5161 MB / 4.394 GB, free: 10.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00244/12.71, allocations: 2.461 MB / 4.397 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004006/12.72, allocations: 310.8 kB / 4.397 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006707/12.72, allocations: 101.5 kB / 4.397 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/12.72, allocations: 4.906 kB / 4.397 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0104/12.73, allocations: 3.252 MB / 4.4 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.521e-05/12.73, allocations: 10.66 kB / 4.4 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004948/12.73, allocations: 225 kB / 4.4 GB, free: 24 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001993/12.73, allocations: 0.5126 MB / 4.401 GB, free: 24 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001609/12.73, allocations: 2.456 MB / 4.403 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002732/12.73, allocations: 281.5 kB / 4.404 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002346/12.74, allocations: 95.81 kB / 4.404 GB, free: 21.89 MB / 0.6198 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,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,junctionIdeal.medium.phase,source.medium.phase,sink.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.0007635/12.74, allocations: 247.5 kB / 4.404 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01025/12.75, allocations: 3.153 MB / 4.407 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004957/12.75, allocations: 192.2 kB / 4.407 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01476/12.76, allocations: 7.049 MB / 4.414 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.527e-05/12.76, allocations: 72.55 kB / 4.414 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-05/12.76, allocations: 3.219 kB / 4.414 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01272/12.77, allocations: 6.139 MB / 4.42 GB, free: 20.09 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02313/12.8, allocations: 11.22 MB / 4.431 GB, free: 18.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.86e-05/12.8, allocations: 7.656 kB / 4.431 GB, free: 18.73 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001604/12.8, allocations: 393.5 kB / 4.431 GB, free: 18.72 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008272/12.8, allocations: 336.6 kB / 4.432 GB, free: 18.67 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000279/12.8, allocations: 40.27 kB / 4.432 GB, free: 18.67 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001654/12.8, allocations: 2.634 MB / 4.434 GB, free: 16.58 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.03e-05/12.8, allocations: 15.27 kB / 4.434 GB, free: 16.58 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01533/12.82, allocations: 7.625 MB / 4.442 GB, free: 12.73 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001705/12.82, allocations: 0.709 MB / 4.443 GB, free: 12.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003912/12.82, allocations: 31.05 kB / 4.443 GB, free: 12.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001653/12.82, allocations: 181.3 kB / 4.443 GB, free: 12.11 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003014/12.82, allocations: 162.9 kB / 4.443 GB, free: 12.02 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001675/12.82, allocations: 80.92 kB / 4.443 GB, free: 11.97 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.00162/12.82, allocations: 1.045 MB / 4.444 GB, free: 11.35 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.765e-06/12.82, allocations: 0 / 4.444 GB, free: 11.35 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01206/12.84, allocations: 2.637 MB / 4.447 GB, free: 9.121 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.region3boundary,$cse29.region3boundary,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$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,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 (198): * Single equations (assignments): 173 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0273/12.86, allocations: 12.76 MB / 4.459 GB, free: 244 kB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.3479/13.21, allocations: 4.967 MB / 4.464 GB, free: 119.8 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.138e-05/13.21, allocations: 4.828 kB / 4.464 GB, free: 119.8 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.004019/13.21, allocations: 2.388 MB / 4.466 GB, free: 119.7 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005334/13.22, allocations: 0.8518 MB / 4.467 GB, free: 119.6 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01764/13.24, allocations: 6.911 MB / 4.474 GB, free: 118.4 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002325/13.24, allocations: 2.202 MB / 4.476 GB, free: 117.6 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.006261/13.25, allocations: 2.635 MB / 4.478 GB, free: 117.6 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001996/13.25, allocations: 1.245 MB / 4.48 GB, free: 117.6 MB / 0.6198 GB Notification: Performance of SimCode: time 1.433e-06/13.25, allocations: 0.75 kB / 4.48 GB, free: 117.6 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1584/13.41, allocations: 101.2 MB / 4.579 GB, free: 112.3 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002146/13.41, allocations: 179.9 kB / 4.579 GB, free: 112.1 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.079/19.49, allocations: 3.281 kB / 4.579 GB, free: 112.1 MB / 0.6198 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat