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.001329/0.00133, allocations: 183.4 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.894/1.894, allocations: 205.2 MB / 218.9 MB, free: 9.211 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.001076/0.001076, allocations: 82.61 kB / 267 MB, free: 9.293 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.5707/0.5707, allocations: 43.47 MB / 358.6 MB, free: 52.3 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.213e-05/5.215e-05, allocations: 4 kB / 425.4 MB, free: 8.812 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1785/0.1786, allocations: 58.86 MB / 484.3 MB, free: 13.86 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.894/9.073, allocations: 2.846 GB / 3.319 GB, free: 41.42 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000212/9.073, allocations: 76.58 kB / 3.319 GB, free: 41.35 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.57/12.64, allocations: 0.9077 GB / 4.227 GB, free: 39.38 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.064e-06/12.64, allocations: 0 / 4.227 GB, free: 39.38 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000196/12.64, allocations: 59.25 kB / 4.227 GB, free: 39.37 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.01455/12.66, allocations: 3.977 MB / 4.231 GB, free: 37.61 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/12.66, allocations: 14.31 kB / 4.231 GB, free: 37.61 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009931/12.66, allocations: 299.1 kB / 4.231 GB, free: 37.56 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00649/12.67, allocations: 0.8799 MB / 4.232 GB, free: 37.42 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005761/12.67, allocations: 2.099 MB / 4.234 GB, free: 36.97 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000224/12.67, allocations: 186 kB / 4.234 GB, free: 36.97 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007536/12.67, allocations: 204.4 kB / 4.235 GB, free: 36.97 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007655/12.68, allocations: 3.65 MB / 4.238 GB, free: 36.41 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.898e-05/12.68, allocations: 6.188 kB / 4.238 GB, free: 36.41 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002958/12.68, allocations: 95.25 kB / 4.238 GB, free: 36.41 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001856/12.68, allocations: 163 kB / 4.238 GB, free: 36.41 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00623/12.69, allocations: 3.215 MB / 4.241 GB, free: 36.39 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.01802/12.7, allocations: 15.63 MB / 4.257 GB, free: 26.96 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00458/12.71, allocations: 2.732 MB / 4.259 GB, free: 26.34 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001446/12.71, allocations: 1.172 MB / 4.261 GB, free: 26.32 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0424/12.75, allocations: 24.55 MB / 4.285 GB, free: 27.3 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00414/12.76, allocations: 1.732 MB / 4.286 GB, free: 27.17 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=173): time 5.159e-06/12.76, allocations: 0 / 4.286 GB, free: 27.17 MB / 0.5573 GB Notification: Performance of matching and sorting (n=189): time 0.01898/12.78, allocations: 7.895 MB / 4.294 GB, free: 26.09 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000162/12.78, allocations: 261.1 kB / 4.294 GB, free: 25.81 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00294/12.78, allocations: 1.398 MB / 4.296 GB, free: 25.63 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004878/12.78, allocations: 65.67 kB / 4.296 GB, free: 25.6 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001146/12.78, allocations: 0.9687 MB / 4.297 GB, free: 25.22 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008779/12.78, allocations: 0.6234 MB / 4.297 GB, free: 24.82 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003333/12.78, allocations: 39 kB / 4.297 GB, free: 24.82 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002702/12.78, allocations: 392.9 kB / 4.298 GB, free: 24.52 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001851/12.78, allocations: 1.033 MB / 4.299 GB, free: 24.51 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001998/12.79, allocations: 1.498 MB / 4.3 GB, free: 24.06 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001995/12.79, allocations: 1.274 MB / 4.301 GB, free: 23.97 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/12.79, allocations: 3.75 kB / 4.301 GB, free: 23.97 MB / 0.5573 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.005455/12.79, allocations: 3.147 MB / 4.304 GB, free: 23.68 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001673/12.8, allocations: 4.487 MB / 4.309 GB, free: 18.94 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.81e-05/12.8, allocations: 11.09 kB / 4.309 GB, free: 18.94 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008383/12.8, allocations: 231.5 kB / 4.309 GB, free: 18.9 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002278/12.8, allocations: 0.5226 MB / 4.31 GB, free: 18.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001632/12.8, allocations: 2.43 MB / 4.312 GB, free: 16.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003081/12.8, allocations: 307.1 kB / 4.312 GB, free: 16.79 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004941/12.8, allocations: 107.1 kB / 4.312 GB, free: 16.79 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/12.8, allocations: 3.875 kB / 4.312 GB, free: 16.79 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005404/12.81, allocations: 2.884 MB / 4.315 GB, free: 16.63 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.619e-05/12.81, allocations: 10.44 kB / 4.315 GB, free: 16.63 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007719/12.81, allocations: 234.5 kB / 4.315 GB, free: 16.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002093/12.81, allocations: 0.5135 MB / 4.316 GB, free: 16.59 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001489/12.81, allocations: 2.425 MB / 4.318 GB, free: 14.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0029/12.82, allocations: 316 kB / 4.318 GB, free: 14.48 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004393/12.82, allocations: 101.8 kB / 4.319 GB, free: 14.48 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.001015/12.82, allocations: 302.4 kB / 4.319 GB, free: 14.3 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006979/12.82, allocations: 212.5 kB / 4.319 GB, free: 14.19 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009987/12.83, allocations: 7.576 MB / 4.326 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-05/12.83, allocations: 82.94 kB / 4.327 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.578e-05/12.83, allocations: 6.969 kB / 4.327 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007571/12.84, allocations: 6.567 MB / 4.333 GB, free: 12.43 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0191/12.86, allocations: 12.25 MB / 4.345 GB, free: 7.793 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.067e-05/12.86, allocations: 3.969 kB / 4.345 GB, free: 7.793 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001811/12.86, allocations: 442.7 kB / 4.345 GB, free: 7.77 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001183/12.86, allocations: 345 kB / 4.346 GB, free: 7.66 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002997/12.86, allocations: 72.67 kB / 4.346 GB, free: 7.625 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001575/12.86, allocations: 2.529 MB / 4.348 GB, free: 5.352 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/12.86, allocations: 7.219 kB / 4.348 GB, free: 5.352 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008982/12.87, allocations: 7.562 MB / 4.356 GB, free: 1.488 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001904/12.87, allocations: 0.7795 MB / 4.356 GB, free: 1.008 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007546/12.87, allocations: 57.77 kB / 4.356 GB, free: 0.9766 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002335/12.88, allocations: 222.8 kB / 4.357 GB, free: 0.9219 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003616/12.88, allocations: 186.8 kB / 4.357 GB, free: 0.8906 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002212/12.88, allocations: 83.28 kB / 4.357 GB, free: 0.875 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002471/12.88, allocations: 1.253 MB / 4.358 GB, free: 380 kB / 0.5573 GB Notification: Performance of sort global known variables: time 1.9e-07/12.88, allocations: 0 / 4.358 GB, free: 380 kB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01353/12.89, allocations: 2.785 MB / 4.361 GB, free: 15.82 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.02769/12.92, allocations: 12.23 MB / 4.373 GB, free: 5.574 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01133/12.93, allocations: 5.162 MB / 4.378 GB, free: 0.7695 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.407e-05/12.93, allocations: 4 kB / 4.378 GB, free: 0.7656 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.369/13.3, allocations: 3.14 MB / 4.381 GB, free: 67.76 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01012/13.31, allocations: 1.061 MB / 4.382 GB, free: 67.75 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02056/13.33, allocations: 7.575 MB / 4.389 GB, free: 66.42 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001956/13.33, allocations: 2.29 MB / 4.392 GB, free: 65.65 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.005923/13.34, allocations: 2.606 MB / 4.394 GB, free: 65.61 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001887/13.34, allocations: 1.311 MB / 4.395 GB, free: 65.61 MB / 0.573 GB Notification: Performance of SimCode: time 1.383e-06/13.34, allocations: 0 / 4.395 GB, free: 65.61 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2108/13.55, allocations: 125 MB / 4.517 GB, free: 52.65 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000278/13.55, allocations: 226.9 kB / 4.518 GB, free: 52.42 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.172/20.72, allocations: 1.094 kB / 4.518 GB, free: 52.42 MB / 0.573 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