Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.BranchingPipes18,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",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.001404/0.001403, allocations: 176.7 kB / 17.06 MB, free: 5.098 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.376/1.376, allocations: 223.2 MB / 241 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 95.23 kB / 292.1 MB, free: 10.67 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3393/0.3393, allocations: 44.21 MB / 387.5 MB, free: 38.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003145/0.0003147, allocations: 12 kB / 460 MB, free: 1.422 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3436, allocations: 61.9 MB / 0.5096 GB, free: 37.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.395/6.739, allocations: 2.852 GB / 3.362 GB, free: 131.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/6.739, allocations: 86.92 kB / 3.362 GB, free: 131.8 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.84/10.58, allocations: 1.028 GB / 4.389 GB, free: 5.73 MB / 0.5573 GB Notification: Performance of FrontEnd: time 4.458e-06/10.58, allocations: 0 / 4.389 GB, free: 5.73 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002891/10.58, allocations: 67.98 kB / 4.389 GB, free: 5.664 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.0191/10.6, allocations: 4.557 MB / 4.394 GB, free: 1.117 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/10.6, allocations: 15.97 kB / 4.394 GB, free: 1.102 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001716/10.6, allocations: 320.9 kB / 4.394 GB, free: 0.7773 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008086/10.61, allocations: 0.9487 MB / 4.395 GB, free: 15.82 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008059/10.62, allocations: 2.218 MB / 4.397 GB, free: 13.56 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003581/10.62, allocations: 200.2 kB / 4.397 GB, free: 13.36 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001221/10.62, allocations: 223.8 kB / 4.398 GB, free: 13.14 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01121/10.63, allocations: 3.927 MB / 4.401 GB, free: 8.98 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.893e-05/10.63, allocations: 11.84 kB / 4.401 GB, free: 8.969 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003922/10.63, allocations: 99.97 kB / 4.402 GB, free: 8.871 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002663/10.63, allocations: 171.9 kB / 4.402 GB, free: 8.699 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009851/10.64, allocations: 3.626 MB / 4.405 GB, free: 5.055 MB / 0.573 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.4783/11.12, allocations: 16.94 MB / 4.422 GB, free: 29.33 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00703/11.13, allocations: 3.205 MB / 4.425 GB, free: 28.73 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04461/11.17, allocations: 24.33 MB / 4.449 GB, free: 29.91 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005317/11.18, allocations: 1.912 MB / 4.451 GB, free: 29.78 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=192): time 5.38e-06/11.18, allocations: 0 / 4.451 GB, free: 29.78 MB / 0.5886 GB Notification: Performance of matching and sorting (n=212): time 0.02984/11.21, allocations: 10.54 MB / 4.461 GB, free: 28.56 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001758/11.21, allocations: 261.2 kB / 4.461 GB, free: 28.28 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002394/11.21, allocations: 1.52 MB / 4.463 GB, free: 28.06 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0002742/11.21, allocations: 67.03 kB / 4.463 GB, free: 28.03 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009326/11.21, allocations: 1.045 MB / 4.464 GB, free: 27.72 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006007/11.21, allocations: 0.6964 MB / 4.464 GB, free: 27.37 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001499/11.21, allocations: 48.59 kB / 4.464 GB, free: 27.37 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001972/11.21, allocations: 397.7 kB / 4.465 GB, free: 27.06 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002336/11.21, allocations: 1.294 MB / 4.466 GB, free: 27.05 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00286/11.22, allocations: 1.805 MB / 4.468 GB, free: 26.54 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002996/11.22, allocations: 1.545 MB / 4.469 GB, free: 26.46 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.34e-05/11.22, allocations: 3.906 kB / 4.469 GB, free: 26.46 MB / 0.5886 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.008657/11.23, allocations: 3.815 MB / 4.473 GB, free: 26.16 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.002208/11.23, allocations: 5.143 MB / 4.478 GB, free: 20.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.173e-05/11.23, allocations: 12.16 kB / 4.478 GB, free: 20.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001738/11.23, allocations: 352 kB / 4.478 GB, free: 20.76 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003713/11.24, allocations: 0.5983 MB / 4.479 GB, free: 20.76 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003125/11.24, allocations: 3.097 MB / 4.482 GB, free: 18.17 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004206/11.24, allocations: 337.8 kB / 4.482 GB, free: 18.16 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005929/11.24, allocations: 123.3 kB / 4.482 GB, free: 18.16 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/11.24, allocations: 2.75 kB / 4.482 GB, free: 18.16 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01048/11.25, allocations: 3.534 MB / 4.486 GB, free: 18.01 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.017e-05/11.25, allocations: 16.67 kB / 4.486 GB, free: 18.01 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001688/11.26, allocations: 353.2 kB / 4.486 GB, free: 17.97 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004392/11.26, allocations: 0.5862 MB / 4.487 GB, free: 17.97 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003275/11.26, allocations: 3.105 MB / 4.49 GB, free: 15.38 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005828/11.27, allocations: 339.2 kB / 4.49 GB, free: 15.36 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008155/11.27, allocations: 119 kB / 4.49 GB, free: 15.36 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (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,junctionVolume.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (283): * Single equations (assignments): 276 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002969/11.27, allocations: 0.7837 MB / 4.491 GB, free: 15.11 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008952/11.27, allocations: 237.1 kB / 4.491 GB, free: 14.99 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02081/11.29, allocations: 8.35 MB / 4.499 GB, free: 14.29 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001238/11.3, allocations: 92.14 kB / 4.5 GB, free: 14.29 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.652e-05/11.3, allocations: 0 / 4.5 GB, free: 14.29 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01658/11.31, allocations: 7.255 MB / 4.507 GB, free: 13.36 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03555/11.35, allocations: 13.39 MB / 4.52 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.853e-05/11.35, allocations: 10.09 kB / 4.52 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00333/11.35, allocations: 489.7 kB / 4.52 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002712/11.35, allocations: 483.8 kB / 4.521 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006638/11.35, allocations: 81.34 kB / 4.521 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003903/11.36, allocations: 3.231 MB / 4.524 GB, free: 25.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.279e-05/11.36, allocations: 10.19 kB / 4.524 GB, free: 25.09 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01939/11.38, allocations: 8.648 MB / 4.532 GB, free: 23.66 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003542/11.38, allocations: 0.8355 MB / 4.533 GB, free: 23.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001356/11.38, allocations: 63.47 kB / 4.533 GB, free: 23.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004001/11.39, allocations: 242 kB / 4.533 GB, free: 23.29 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006864/11.39, allocations: 195.5 kB / 4.534 GB, free: 23.28 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004669/11.39, allocations: 96.41 kB / 4.534 GB, free: 23.28 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.003725/11.39, allocations: 1.347 MB / 4.535 GB, free: 23.14 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.7e-07/11.39, allocations: 2.219 kB / 4.535 GB, free: 23.14 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0172/11.41, allocations: 2.956 MB / 4.538 GB, free: 23.03 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,junctionVolume.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (239): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03674/11.45, allocations: 13.48 MB / 4.551 GB, free: 19.55 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01292/11.46, allocations: 5.967 MB / 4.557 GB, free: 19.2 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.502e-05/11.46, allocations: 3.25 kB / 4.557 GB, free: 19.2 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.004303/11.46, allocations: 3.063 MB / 4.56 GB, free: 19.05 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00626/11.47, allocations: 1.219 MB / 4.561 GB, free: 19.03 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03034/11.5, allocations: 20.78 MB / 4.581 GB, free: 5.074 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003081/11.5, allocations: 2.383 MB / 4.584 GB, free: 4.262 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.005886/11.51, allocations: 2.579 MB / 4.586 GB, free: 4.172 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002471/11.51, allocations: 1.444 MB / 4.588 GB, free: 4.164 MB / 0.6042 GB Notification: Performance of SimCode: time 1.754e-06/11.51, allocations: 4.531 kB / 4.588 GB, free: 4.164 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6516/12.16, allocations: 127.5 MB / 4.712 GB, free: 83.59 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002212/12.16, allocations: 255.4 kB / 4.712 GB, free: 83.25 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.529/18.69, allocations: 4 kB / 4.712 GB, free: 83.24 MB / 0.6198 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat