Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",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.001293/0.001293, allocations: 180.7 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.491/1.491, allocations: 221.3 MB / 236 MB, free: 2.887 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.0008617/0.0008613, allocations: 91.59 kB / 287 MB, free: 204 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.2309/0.2309, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.939e-05/3.947e-05, allocations: 8.156 kB / 451.9 MB, free: 9.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1497, allocations: 61.91 MB / 0.5018 GB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.826/8.975, allocations: 2.848 GB / 3.349 GB, free: 88.89 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002566/8.976, allocations: 76.77 kB / 3.349 GB, free: 88.82 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.813/12.79, allocations: 0.8826 GB / 4.232 GB, free: 23.78 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.864e-06/12.79, allocations: 0 / 4.232 GB, free: 23.78 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002256/12.79, allocations: 60.36 kB / 4.232 GB, free: 23.77 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.0156/12.8, allocations: 3.764 MB / 4.236 GB, free: 21.69 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.339e-05/12.8, allocations: 16.53 kB / 4.236 GB, free: 21.68 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001398/12.81, allocations: 274.2 kB / 4.236 GB, free: 21.53 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006489/12.81, allocations: 0.7865 MB / 4.237 GB, free: 21.09 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007314/12.82, allocations: 1.97 MB / 4.239 GB, free: 19.5 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000386/12.82, allocations: 166.3 kB / 4.239 GB, free: 19.35 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001497/12.82, allocations: 185.5 kB / 4.239 GB, free: 19.18 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01016/12.83, allocations: 3.267 MB / 4.242 GB, free: 15.92 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001008/12.83, allocations: 7.938 kB / 4.242 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006658/12.83, allocations: 78.95 kB / 4.242 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002444/12.83, allocations: 155.2 kB / 4.242 GB, free: 15.69 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007203/12.84, allocations: 2.839 MB / 4.245 GB, free: 12.84 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.01928/12.86, allocations: 14.07 MB / 4.259 GB, free: 13.74 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004645/12.86, allocations: 1.99 MB / 4.261 GB, free: 11.74 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001715/12.87, allocations: 1.058 MB / 4.262 GB, free: 10.68 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.549/13.41, allocations: 24.69 MB / 4.286 GB, free: 59.87 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005147/13.42, allocations: 1.632 MB / 4.288 GB, free: 59.75 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001686/13.42, allocations: 166.7 kB / 4.288 GB, free: 59.75 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 4.789e-06/13.42, allocations: 3.281 kB / 4.288 GB, free: 59.75 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.02031/13.44, allocations: 7.041 MB / 4.295 GB, free: 58.96 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.942e-05/13.44, allocations: 252.8 kB / 4.295 GB, free: 58.68 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003195/13.45, allocations: 1.328 MB / 4.296 GB, free: 58.5 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003138/13.45, allocations: 54.45 kB / 4.296 GB, free: 58.47 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00113/13.45, allocations: 0.8795 MB / 4.297 GB, free: 58.21 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006734/13.45, allocations: 0.5566 MB / 4.298 GB, free: 57.94 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001877/13.45, allocations: 36.47 kB / 4.298 GB, free: 57.94 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001699/13.45, allocations: 380.5 kB / 4.298 GB, free: 57.63 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002013/13.45, allocations: 0.9297 MB / 4.299 GB, free: 57.63 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002007/13.45, allocations: 1.336 MB / 4.3 GB, free: 57.24 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00198/13.45, allocations: 1.159 MB / 4.301 GB, free: 57.16 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.736e-05/13.45, allocations: 3.125 kB / 4.301 GB, free: 57.16 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.007328/13.46, allocations: 2.988 MB / 4.304 GB, free: 56.88 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001127/13.46, allocations: 3.838 MB / 4.308 GB, free: 52.85 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.441e-05/13.46, allocations: 13.61 kB / 4.308 GB, free: 52.84 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002744/13.47, allocations: 0.5176 MB / 4.309 GB, free: 52.81 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002471/13.47, allocations: 450.9 kB / 4.309 GB, free: 52.81 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002609/13.47, allocations: 2.706 MB / 4.312 GB, free: 50.73 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003789/13.47, allocations: 266.1 kB / 4.312 GB, free: 50.73 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007964/13.48, allocations: 97.67 kB / 4.312 GB, free: 50.73 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/13.48, allocations: 7.312 kB / 4.312 GB, free: 50.73 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008611/13.48, allocations: 2.617 MB / 4.315 GB, free: 50.59 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.069e-05/13.48, allocations: 12.12 kB / 4.315 GB, free: 50.59 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008116/13.48, allocations: 196 kB / 4.315 GB, free: 50.57 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002245/13.49, allocations: 458.7 kB / 4.315 GB, free: 50.57 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001146/13.49, allocations: 1.878 MB / 4.317 GB, free: 49.01 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003148/13.49, allocations: 259.2 kB / 4.317 GB, free: 49 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004969/13.49, allocations: 96.17 kB / 4.317 GB, free: 49 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.001101/13.49, allocations: 287.6 kB / 4.318 GB, free: 48.83 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000861/13.49, allocations: 208.1 kB / 4.318 GB, free: 48.73 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01165/13.51, allocations: 7.455 MB / 4.325 GB, free: 48.04 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.327e-05/13.51, allocations: 82 kB / 4.325 GB, free: 48.04 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.051e-05/13.51, allocations: 0 / 4.325 GB, free: 48.04 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009354/13.52, allocations: 6.507 MB / 4.332 GB, free: 47.09 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01992/13.54, allocations: 11.27 MB / 4.343 GB, free: 46.02 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.292e-05/13.54, allocations: 7.281 kB / 4.343 GB, free: 46.02 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001576/13.54, allocations: 369.5 kB / 4.343 GB, free: 46.02 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003128/13.54, allocations: 1.305 MB / 4.344 GB, free: 45.95 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004368/13.54, allocations: 66.75 kB / 4.344 GB, free: 45.95 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00259/13.54, allocations: 3.205 MB / 4.347 GB, free: 43.85 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.646e-06/13.54, allocations: 9.656 kB / 4.347 GB, free: 43.85 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01114/13.55, allocations: 7.278 MB / 4.355 GB, free: 42.6 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00224/13.56, allocations: 0.7351 MB / 4.355 GB, free: 42.3 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009959/13.56, allocations: 54.06 kB / 4.355 GB, free: 42.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002668/13.56, allocations: 200.2 kB / 4.355 GB, free: 42.29 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000477/13.56, allocations: 155.2 kB / 4.356 GB, free: 42.29 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002452/13.56, allocations: 77.47 kB / 4.356 GB, free: 42.29 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002799/13.56, allocations: 1.2 MB / 4.357 GB, free: 42.12 MB / 0.573 GB Notification: Performance of sort global known variables: time 3.11e-07/13.56, allocations: 0 / 4.357 GB, free: 42.12 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01712/13.58, allocations: 2.638 MB / 4.359 GB, free: 42.02 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,$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.0253/13.61, allocations: 11.38 MB / 4.371 GB, free: 38.99 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01023/13.62, allocations: 4.632 MB / 4.375 GB, free: 38.65 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.378e-05/13.62, allocations: 0 / 4.375 GB, free: 38.65 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004095/13.62, allocations: 2.455 MB / 4.377 GB, free: 38.52 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005943/13.63, allocations: 0.9856 MB / 4.378 GB, free: 38.5 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0235/13.65, allocations: 6.987 MB / 4.385 GB, free: 37.12 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002912/13.65, allocations: 2.194 MB / 4.387 GB, free: 36.36 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.005962/13.66, allocations: 2.488 MB / 4.39 GB, free: 36.31 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001959/13.66, allocations: 1.209 MB / 4.391 GB, free: 36.3 MB / 0.573 GB Notification: Performance of SimCode: time 1.253e-06/13.66, allocations: 0 / 4.391 GB, free: 36.3 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.634/14.3, allocations: 119.2 MB / 4.507 GB, free: 67.23 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001653/14.3, allocations: 229.9 kB / 4.508 GB, free: 66.97 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.672/20.97, allocations: 4.969 kB / 4.508 GB, free: 66.97 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat