Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001008/0.001008, allocations: 196.6 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007786/0.0007787, allocations: 97.17 kB / 292.1 MB, free: 5.969 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2122/0.2122, allocations: 45.14 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.242e-05/4.243e-05, allocations: 4 kB / 460.5 MB, free: 69.92 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1116, allocations: 63.24 MB / 0.5114 GB, free: 6.703 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.649/6.76, allocations: 2.849 GB / 3.36 GB, free: 139.1 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002448/6.761, allocations: 81.14 kB / 3.36 GB, free: 139.1 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.726/9.487, allocations: 0.8826 GB / 4.243 GB, free: 35.48 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.773e-06/9.487, allocations: 2.484 kB / 4.243 GB, free: 35.48 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001543/9.487, allocations: 61.16 kB / 4.243 GB, free: 35.46 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01122/9.498, allocations: 3.775 MB / 4.246 GB, free: 33.73 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/9.498, allocations: 9.906 kB / 4.246 GB, free: 33.73 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006273/9.499, allocations: 269.1 kB / 4.247 GB, free: 33.68 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005164/9.504, allocations: 0.7908 MB / 4.247 GB, free: 33.55 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00468/9.509, allocations: 1.971 MB / 4.249 GB, free: 33.11 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001667/9.509, allocations: 165.4 kB / 4.25 GB, free: 33.11 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003892/9.509, allocations: 190.1 kB / 4.25 GB, free: 33.1 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00578/9.515, allocations: 3.282 MB / 4.253 GB, free: 32.61 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.593e-05/9.515, allocations: 5 kB / 4.253 GB, free: 32.61 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002244/9.516, allocations: 79.31 kB / 4.253 GB, free: 32.61 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001626/9.516, allocations: 147.4 kB / 4.253 GB, free: 32.61 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004855/9.521, allocations: 2.847 MB / 4.256 GB, free: 32.59 MB / 0.5573 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.01329/9.534, allocations: 14.06 MB / 4.27 GB, free: 24.11 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003412/9.537, allocations: 2.001 MB / 4.272 GB, free: 24.06 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00115/9.539, allocations: 1.058 MB / 4.273 GB, free: 24.05 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04147/9.58, allocations: 27.24 MB / 4.299 GB, free: 22.11 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003807/9.584, allocations: 1.625 MB / 4.301 GB, free: 21.98 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001359/9.585, allocations: 170.8 kB / 4.301 GB, free: 21.9 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 6.302e-06/9.585, allocations: 4 kB / 4.301 GB, free: 21.9 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.01585/9.601, allocations: 7.042 MB / 4.308 GB, free: 20.9 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/9.601, allocations: 262.9 kB / 4.308 GB, free: 20.61 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001913/9.603, allocations: 1.32 MB / 4.309 GB, free: 20.43 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001904/9.603, allocations: 57.08 kB / 4.31 GB, free: 20.4 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006107/9.604, allocations: 0.8866 MB / 4.31 GB, free: 20.07 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003863/9.604, allocations: 0.5468 MB / 4.311 GB, free: 19.71 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/9.605, allocations: 38.34 kB / 4.311 GB, free: 19.71 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001345/9.605, allocations: 379.1 kB / 4.311 GB, free: 19.41 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001236/9.606, allocations: 0.9308 MB / 4.312 GB, free: 19.4 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/9.607, allocations: 1.342 MB / 4.314 GB, free: 19 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001438/9.609, allocations: 1.165 MB / 4.315 GB, free: 18.9 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.154e-06/9.609, allocations: 0 / 4.315 GB, free: 18.9 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.004766/9.614, allocations: 2.978 MB / 4.318 GB, free: 18.61 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001298/9.615, allocations: 3.852 MB / 4.321 GB, free: 14.53 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.135e-05/9.615, allocations: 7.125 kB / 4.321 GB, free: 14.53 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002184/9.617, allocations: 0.5231 MB / 4.322 GB, free: 14.48 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001967/9.619, allocations: 447.7 kB / 4.322 GB, free: 14.46 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00258/9.622, allocations: 2.705 MB / 4.325 GB, free: 12.24 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00378/9.626, allocations: 268 kB / 4.325 GB, free: 12.18 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007792/9.626, allocations: 95.41 kB / 4.325 GB, free: 12.16 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/9.626, allocations: 3.688 kB / 4.325 GB, free: 12.16 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005127/9.631, allocations: 2.621 MB / 4.328 GB, free: 11.18 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.138e-05/9.632, allocations: 7.875 kB / 4.328 GB, free: 11.18 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005659/9.632, allocations: 195.9 kB / 4.328 GB, free: 11.12 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001712/9.634, allocations: 456.5 kB / 4.328 GB, free: 11.07 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001048/9.635, allocations: 1.874 MB / 4.33 GB, free: 9.383 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002211/9.637, allocations: 267.2 kB / 4.331 GB, free: 9.32 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002437/9.637, allocations: 102.2 kB / 4.331 GB, free: 9.301 MB / 0.573 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.0005586/9.638, allocations: 281 kB / 4.331 GB, free: 9.047 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004244/9.638, allocations: 207.2 kB / 4.331 GB, free: 8.945 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007903/9.646, allocations: 7.458 MB / 4.338 GB, free: 5.594 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.439e-05/9.646, allocations: 83.39 kB / 4.338 GB, free: 5.574 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/9.646, allocations: 3.953 kB / 4.338 GB, free: 5.57 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005909/9.652, allocations: 6.516 MB / 4.345 GB, free: 0.8945 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01497/9.667, allocations: 11.26 MB / 4.356 GB, free: 7.098 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/9.667, allocations: 4 kB / 4.356 GB, free: 7.094 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00139/9.669, allocations: 364.9 kB / 4.356 GB, free: 6.797 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002486/9.671, allocations: 1.306 MB / 4.357 GB, free: 5.699 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002218/9.671, allocations: 63.83 kB / 4.358 GB, free: 5.645 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002293/9.674, allocations: 3.206 MB / 4.361 GB, free: 2.508 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/9.674, allocations: 11.94 kB / 4.361 GB, free: 2.496 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009734/9.684, allocations: 7.335 MB / 4.368 GB, free: 11.63 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001581/9.685, allocations: 0.7229 MB / 4.369 GB, free: 10.99 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006176/9.686, allocations: 63.75 kB / 4.369 GB, free: 10.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001989/9.688, allocations: 192.4 kB / 4.369 GB, free: 10.78 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003568/9.688, allocations: 158.5 kB / 4.369 GB, free: 10.68 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000197/9.688, allocations: 74.89 kB / 4.369 GB, free: 10.61 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.002218/9.691, allocations: 1.199 MB / 4.37 GB, free: 9.496 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.1e-07/9.691, allocations: 0 / 4.37 GB, free: 9.496 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.009948/9.701, allocations: 2.654 MB / 4.373 GB, free: 6.898 MB / 0.6042 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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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.338/10.04, allocations: 11.92 MB / 4.384 GB, free: 80.59 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.006124/10.04, allocations: 4.631 MB / 4.389 GB, free: 80.26 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/10.04, allocations: 0 / 4.389 GB, free: 80.26 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003002/10.05, allocations: 2.454 MB / 4.391 GB, free: 80.12 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004362/10.05, allocations: 0.9852 MB / 4.392 GB, free: 80.11 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01255/10.06, allocations: 6.998 MB / 4.399 GB, free: 78.86 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001639/10.07, allocations: 2.192 MB / 4.401 GB, free: 78.09 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.005293/10.07, allocations: 2.477 MB / 4.404 GB, free: 78.06 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001463/10.07, allocations: 1.216 MB / 4.405 GB, free: 78.06 MB / 0.6042 GB Notification: Performance of SimCode: time 1.012e-06/10.07, allocations: 0 / 4.405 GB, free: 78.06 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1572/10.23, allocations: 119.4 MB / 4.521 GB, free: 67.79 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001422/10.23, allocations: 220.6 kB / 4.522 GB, free: 67.57 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.398/15.63, allocations: 0 / 4.522 GB, free: 67.57 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat