Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",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.001267/0.001268, allocations: 182.4 kB / 15.76 MB, free: 6.367 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.624/1.624, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001045/0.001045, allocations: 82.88 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2106/0.2106, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003413/0.0003413, allocations: 8 kB / 431.5 MB, free: 19.49 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1119, allocations: 58.86 MB / 490.3 MB, free: 8.57 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.766/5.878, allocations: 2.847 GB / 3.326 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/5.878, allocations: 85.86 kB / 3.326 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.606/9.484, allocations: 1.017 GB / 4.343 GB, free: 11.6 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.294e-06/9.484, allocations: 0 / 4.343 GB, free: 11.6 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0004052/9.485, allocations: 74.98 kB / 4.343 GB, free: 11.53 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.02113/9.506, allocations: 4.554 MB / 4.347 GB, free: 6.965 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/9.506, allocations: 8.031 kB / 4.347 GB, free: 6.957 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001887/9.508, allocations: 336.4 kB / 4.347 GB, free: 6.621 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008038/9.516, allocations: 0.9294 MB / 4.348 GB, free: 5.688 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009551/9.526, allocations: 2.222 MB / 4.35 GB, free: 3.418 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004616/9.526, allocations: 196.2 kB / 4.351 GB, free: 3.223 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001391/9.528, allocations: 235.9 kB / 4.351 GB, free: 2.992 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4185/9.946, allocations: 3.92 MB / 4.355 GB, free: 37.68 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.175e-05/9.946, allocations: 10.09 kB / 4.355 GB, free: 37.68 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000363/9.947, allocations: 99.89 kB / 4.355 GB, free: 37.68 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000296/9.947, allocations: 174.1 kB / 4.355 GB, free: 37.68 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008291/9.955, allocations: 3.622 MB / 4.359 GB, free: 37.64 MB / 0.5573 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.02339/9.979, allocations: 16.95 MB / 4.375 GB, free: 27.76 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007449/9.986, allocations: 3.194 MB / 4.378 GB, free: 27.16 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04782/10.03, allocations: 24.34 MB / 4.402 GB, free: 28.34 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005463/10.04, allocations: 1.91 MB / 4.404 GB, free: 28.21 MB / 0.573 GB Notification: Performance of pre-optimization done (n=192): time 7.133e-06/10.04, allocations: 0 / 4.404 GB, free: 28.21 MB / 0.573 GB Notification: Performance of matching and sorting (n=212): time 0.02709/10.07, allocations: 10.53 MB / 4.414 GB, free: 26.99 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001801/10.07, allocations: 260.4 kB / 4.414 GB, free: 26.71 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002482/10.07, allocations: 1.521 MB / 4.416 GB, free: 26.5 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003125/10.07, allocations: 68.55 kB / 4.416 GB, free: 26.46 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009846/10.07, allocations: 1.036 MB / 4.417 GB, free: 26.16 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007597/10.07, allocations: 0.7057 MB / 4.418 GB, free: 25.8 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/10.07, allocations: 47.12 kB / 4.418 GB, free: 25.8 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002597/10.07, allocations: 403.2 kB / 4.418 GB, free: 25.49 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002408/10.07, allocations: 1.3 MB / 4.419 GB, free: 25.48 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002623/10.08, allocations: 1.799 MB / 4.421 GB, free: 24.97 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002626/10.08, allocations: 1.543 MB / 4.423 GB, free: 24.89 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.198e-05/10.08, allocations: 6.219 kB / 4.423 GB, free: 24.89 MB / 0.573 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.007316/10.09, allocations: 3.804 MB / 4.426 GB, free: 24.59 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002316/10.09, allocations: 5.144 MB / 4.431 GB, free: 19.24 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.511e-05/10.09, allocations: 12.28 kB / 4.431 GB, free: 19.24 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001244/10.09, allocations: 360.1 kB / 4.432 GB, free: 19.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002474/10.09, allocations: 0.5921 MB / 4.432 GB, free: 19.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002271/10.1, allocations: 3.102 MB / 4.435 GB, free: 16.6 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003673/10.1, allocations: 340.7 kB / 4.436 GB, free: 16.59 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003276/10.1, allocations: 122.5 kB / 4.436 GB, free: 16.59 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/10.1, allocations: 3.062 kB / 4.436 GB, free: 16.59 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006632/10.11, allocations: 3.536 MB / 4.439 GB, free: 16.44 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.636e-05/10.11, allocations: 12.41 kB / 4.439 GB, free: 16.44 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001201/10.11, allocations: 354.8 kB / 4.44 GB, free: 16.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002352/10.11, allocations: 0.5845 MB / 4.44 GB, free: 16.4 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003072/10.11, allocations: 3.102 MB / 4.443 GB, free: 29.81 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003355/10.12, allocations: 331.2 kB / 4.443 GB, free: 29.8 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004144/10.12, allocations: 127.3 kB / 4.444 GB, free: 29.8 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.002261/10.12, allocations: 0.788 MB / 4.444 GB, free: 29.55 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009098/10.12, allocations: 241.3 kB / 4.445 GB, free: 29.43 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01284/10.13, allocations: 8.342 MB / 4.453 GB, free: 28.66 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.538e-05/10.13, allocations: 93.36 kB / 4.453 GB, free: 28.66 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.389e-05/10.13, allocations: 0 / 4.453 GB, free: 28.66 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009351/10.14, allocations: 7.262 MB / 4.46 GB, free: 27.73 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02115/10.16, allocations: 13.38 MB / 4.473 GB, free: 26.09 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-05/10.16, allocations: 11 kB / 4.473 GB, free: 26.08 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002013/10.17, allocations: 499.3 kB / 4.473 GB, free: 26.08 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001764/10.17, allocations: 486.8 kB / 4.474 GB, free: 26.03 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000456/10.17, allocations: 81.81 kB / 4.474 GB, free: 26.03 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002598/10.17, allocations: 3.231 MB / 4.477 GB, free: 23.44 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.118e-05/10.17, allocations: 9.625 kB / 4.477 GB, free: 23.44 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01367/10.18, allocations: 8.644 MB / 4.486 GB, free: 22.01 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002663/10.19, allocations: 0.8287 MB / 4.486 GB, free: 21.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001015/10.19, allocations: 65.42 kB / 4.486 GB, free: 21.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002958/10.19, allocations: 236.4 kB / 4.487 GB, free: 21.65 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005133/10.19, allocations: 203.9 kB / 4.487 GB, free: 21.64 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002979/10.19, allocations: 92.2 kB / 4.487 GB, free: 21.64 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.003018/10.19, allocations: 1.346 MB / 4.488 GB, free: 21.5 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5.31e-07/10.19, allocations: 0 / 4.488 GB, free: 21.5 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01526/10.21, allocations: 2.952 MB / 4.491 GB, free: 21.39 MB / 0.5886 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.03068/10.24, allocations: 13.47 MB / 4.504 GB, free: 17.9 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01402/10.25, allocations: 5.974 MB / 4.51 GB, free: 17.55 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.351e-05/10.25, allocations: 3.656 kB / 4.51 GB, free: 17.55 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.006146/10.26, allocations: 3.053 MB / 4.513 GB, free: 17.41 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007258/10.27, allocations: 1.233 MB / 4.514 GB, free: 17.37 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03359/10.3, allocations: 20.77 MB / 4.535 GB, free: 19.27 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003579/10.31, allocations: 2.386 MB / 4.537 GB, free: 18.36 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.006716/10.31, allocations: 2.573 MB / 4.539 GB, free: 18.26 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002654/10.31, allocations: 1.443 MB / 4.541 GB, free: 17.11 MB / 0.6042 GB Notification: Performance of SimCode: time 1.222e-06/10.31, allocations: 0 / 4.541 GB, free: 17.11 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6138/10.93, allocations: 127.4 MB / 4.665 GB, free: 80.64 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001753/10.93, allocations: 255.9 kB / 4.666 GB, free: 80.3 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.801/17.73, allocations: 0 / 4.666 GB, free: 80.3 MB / 0.6042 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat