Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",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.00122/0.00122, allocations: 180.3 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.658/1.658, allocations: 221.3 MB / 236 MB, free: 2.961 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.0009797/0.0009803, allocations: 95.47 kB / 287 MB, free: 252 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.2508/0.2508, allocations: 44.16 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.877e-05/3.878e-05, allocations: 8.156 kB / 451.9 MB, free: 9.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1732/0.1733, allocations: 61.91 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.942/9.115, allocations: 2.831 GB / 3.332 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002538/9.115, allocations: 79.95 kB / 3.333 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.575/12.69, allocations: 0.8772 GB / 4.21 GB, free: 41.57 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.733e-06/12.69, allocations: 3.75 kB / 4.21 GB, free: 41.57 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002739/12.69, allocations: 57.73 kB / 4.21 GB, free: 41.55 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.01434/12.71, allocations: 3.841 MB / 4.214 GB, free: 39.61 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/12.71, allocations: 11 kB / 4.214 GB, free: 39.61 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001177/12.71, allocations: 269 kB / 4.214 GB, free: 39.56 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006018/12.71, allocations: 0.7835 MB / 4.215 GB, free: 39.43 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005972/12.72, allocations: 1.946 MB / 4.216 GB, free: 38.88 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000256/12.72, allocations: 167.8 kB / 4.217 GB, free: 38.81 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000876/12.72, allocations: 177.1 kB / 4.217 GB, free: 38.76 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008083/12.73, allocations: 3.297 MB / 4.22 GB, free: 37.41 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-05/12.73, allocations: 7.438 kB / 4.22 GB, free: 37.4 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004759/12.73, allocations: 80.48 kB / 4.22 GB, free: 37.35 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001959/12.73, allocations: 150.7 kB / 4.22 GB, free: 37.33 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006346/12.74, allocations: 2.924 MB / 4.223 GB, free: 36.41 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.02023/12.76, allocations: 14.23 MB / 4.237 GB, free: 25.77 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004291/12.76, allocations: 1.968 MB / 4.239 GB, free: 25.12 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001646/12.76, allocations: 0.9922 MB / 4.24 GB, free: 24.74 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04394/12.81, allocations: 24.62 MB / 4.264 GB, free: 6.684 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004721/12.81, allocations: 1.592 MB / 4.265 GB, free: 5.438 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002009/12.81, allocations: 183.1 kB / 4.266 GB, free: 5.273 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=146): time 1.15e-05/12.81, allocations: 0 / 4.266 GB, free: 5.273 MB / 0.5573 GB Notification: Performance of matching and sorting (n=158): time 0.01923/12.83, allocations: 6.922 MB / 4.272 GB, free: 15.38 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001518/12.83, allocations: 248.6 kB / 4.273 GB, free: 15.08 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003317/12.83, allocations: 1.4 MB / 4.274 GB, free: 13.82 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003332/12.84, allocations: 53.7 kB / 4.274 GB, free: 13.77 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001099/12.84, allocations: 0.887 MB / 4.275 GB, free: 12.95 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008099/12.84, allocations: 0.5348 MB / 4.275 GB, free: 12.47 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002329/12.84, allocations: 32 kB / 4.275 GB, free: 12.44 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002425/12.84, allocations: 370.1 kB / 4.276 GB, free: 12.09 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001782/12.84, allocations: 0.9368 MB / 4.277 GB, free: 11.26 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002063/12.84, allocations: 1.308 MB / 4.278 GB, free: 9.934 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00198/12.84, allocations: 1.152 MB / 4.279 GB, free: 8.945 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.837e-06/12.84, allocations: 0 / 4.279 GB, free: 8.945 MB / 0.573 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.006218/12.85, allocations: 2.993 MB / 4.282 GB, free: 6.297 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001782/12.85, allocations: 3.837 MB / 4.286 GB, free: 2.125 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.689e-05/12.85, allocations: 12 kB / 4.286 GB, free: 2.113 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002862/12.85, allocations: 0.59 MB / 4.286 GB, free: 1.668 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001991/12.86, allocations: 436 kB / 4.287 GB, free: 1.309 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4009/13.26, allocations: 2.822 MB / 4.29 GB, free: 55.32 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002816/13.26, allocations: 232 kB / 4.29 GB, free: 55.32 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003188/13.26, allocations: 94.83 kB / 4.29 GB, free: 55.32 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/13.26, allocations: 4.312 kB / 4.29 GB, free: 55.32 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005212/13.27, allocations: 2.602 MB / 4.292 GB, free: 55.21 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.36e-05/13.27, allocations: 9.125 kB / 4.292 GB, free: 55.21 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006311/13.27, allocations: 197.5 kB / 4.293 GB, free: 55.18 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001878/13.27, allocations: 453.2 kB / 4.293 GB, free: 55.18 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009566/13.27, allocations: 1.877 MB / 4.295 GB, free: 53.64 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002103/13.27, allocations: 234.4 kB / 4.295 GB, free: 53.64 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002046/13.27, allocations: 90.88 kB / 4.295 GB, free: 53.64 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 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.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,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 195 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005515/13.27, allocations: 283.1 kB / 4.295 GB, free: 53.46 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003516/13.27, allocations: 197.2 kB / 4.296 GB, free: 53.46 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008757/13.28, allocations: 7.459 MB / 4.303 GB, free: 52.96 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.646e-05/13.28, allocations: 77.73 kB / 4.303 GB, free: 52.96 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/13.28, allocations: 2.125 kB / 4.303 GB, free: 52.96 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007/13.29, allocations: 6.516 MB / 4.309 GB, free: 52.09 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01443/13.3, allocations: 10.39 MB / 4.32 GB, free: 51.53 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.171e-05/13.3, allocations: 1.375 kB / 4.32 GB, free: 51.53 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001449/13.3, allocations: 339.5 kB / 4.32 GB, free: 51.53 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003264/13.31, allocations: 1.584 MB / 4.321 GB, free: 51.46 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002491/13.31, allocations: 61.98 kB / 4.321 GB, free: 51.46 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002278/13.31, allocations: 3.475 MB / 4.325 GB, free: 49.38 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/13.31, allocations: 1.656 kB / 4.325 GB, free: 49.38 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008637/13.32, allocations: 7.076 MB / 4.332 GB, free: 48.79 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001952/13.32, allocations: 0.7357 MB / 4.332 GB, free: 48.54 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004844/13.32, allocations: 48.44 kB / 4.333 GB, free: 48.54 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00156/13.32, allocations: 190.4 kB / 4.333 GB, free: 48.53 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002807/13.32, allocations: 132.2 kB / 4.333 GB, free: 48.53 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000146/13.32, allocations: 77.8 kB / 4.333 GB, free: 48.53 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001803/13.33, allocations: 1.253 MB / 4.334 GB, free: 48.37 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.6e-07/13.33, allocations: 0 / 4.334 GB, free: 48.37 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009599/13.33, allocations: 2.74 MB / 4.337 GB, free: 48.37 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (166): * Single equations (assignments): 140 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.02147/13.36, allocations: 9.9 MB / 4.346 GB, free: 47.11 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.008051/13.36, allocations: 4.666 MB / 4.351 GB, free: 46.79 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/13.36, allocations: 0 / 4.351 GB, free: 46.79 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003022/13.37, allocations: 2.237 MB / 4.353 GB, free: 46.65 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005159/13.37, allocations: 0.9706 MB / 4.354 GB, free: 46.64 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01591/13.39, allocations: 6.911 MB / 4.361 GB, free: 45.38 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001562/13.39, allocations: 2.183 MB / 4.363 GB, free: 44.61 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.004778/13.4, allocations: 2.402 MB / 4.365 GB, free: 44.57 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001714/13.4, allocations: 1.197 MB / 4.367 GB, free: 44.57 MB / 0.573 GB Notification: Performance of SimCode: time 1.403e-06/13.4, allocations: 2.656 kB / 4.367 GB, free: 44.57 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.187/13.58, allocations: 120 MB / 4.484 GB, free: 5.156 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001531/13.58, allocations: 234.3 kB / 4.484 GB, free: 4.887 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.629/20.21, allocations: 0 / 4.484 GB, free: 4.887 MB / 0.573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat