Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",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.002199/0.002198, allocations: 181.2 kB / 8.366 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.107/2.107, allocations: 205.3 MB / 214.1 MB, free: 14.07 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001185/0.001185, allocations: 86.55 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3112/0.3112, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.69e-05/2.701e-05, allocations: 4.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4392/0.4393, allocations: 58.85 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.981/9.42, allocations: 2.846 GB / 3.312 GB, free: 99.9 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003013/9.421, allocations: 75.58 kB / 3.312 GB, free: 99.9 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 4.666/14.09, allocations: 0.8999 GB / 4.212 GB, free: 12.04 MB / 0.5265 GB Notification: Performance of FrontEnd: time 1.994e-06/14.09, allocations: 0 / 4.212 GB, free: 12.04 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.000327/14.09, allocations: 59.91 kB / 4.212 GB, free: 11.99 MB / 0.5265 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01856/14.11, allocations: 3.976 MB / 4.216 GB, free: 7.961 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/14.11, allocations: 8.031 kB / 4.216 GB, free: 7.953 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009277/14.12, allocations: 0.8807 MB / 4.216 GB, free: 7.07 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008878/14.12, allocations: 2.089 MB / 4.218 GB, free: 4.961 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002832/14.12, allocations: 91.98 kB / 4.219 GB, free: 4.871 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001256/14.13, allocations: 135.9 kB / 4.219 GB, free: 4.738 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00872/14.13, allocations: 2.624 MB / 4.221 GB, free: 2.109 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009658/14.14, allocations: 2.865 MB / 4.224 GB, free: 15.05 MB / 0.5421 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.311e-05/14.14, allocations: 7.938 kB / 4.224 GB, free: 15.04 MB / 0.5421 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004249/14.14, allocations: 4 kB / 4.224 GB, free: 15.04 MB / 0.5421 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004056/14.15, allocations: 163.7 kB / 4.224 GB, free: 14.88 MB / 0.5421 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.9474/15.09, allocations: 126.3 MB / 4.348 GB, free: 20.48 MB / 0.589 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004716/15.1, allocations: 2.113 MB / 4.35 GB, free: 19.88 MB / 0.589 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002476/15.1, allocations: 1.074 MB / 4.351 GB, free: 19.86 MB / 0.589 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0556/15.16, allocations: 16.97 MB / 4.367 GB, free: 24.78 MB / 0.6046 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003261/15.16, allocations: 1.255 MB / 4.368 GB, free: 24.62 MB / 0.6046 GB Notification: Performance of pre-optimization done (n=163): time 6.292e-06/15.16, allocations: 0 / 4.368 GB, free: 24.62 MB / 0.6046 GB Notification: Performance of matching and sorting (n=179): time 0.06103/15.22, allocations: 9.6 MB / 4.378 GB, free: 23.01 MB / 0.6046 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002568/15.22, allocations: 368 kB / 4.378 GB, free: 22.61 MB / 0.6046 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002438/15.22, allocations: 1.091 MB / 4.379 GB, free: 22.44 MB / 0.6046 GB Notification: Performance of collectPreVariables (initialization): time 0.0006658/15.22, allocations: 29.08 kB / 4.379 GB, free: 22.41 MB / 0.6046 GB Notification: Performance of collectInitialEqns (initialization): time 0.00114/15.22, allocations: 0.9721 MB / 4.38 GB, free: 22 MB / 0.6046 GB Notification: Performance of collectInitialBindings (initialization): time 0.001177/15.23, allocations: 0.5803 MB / 4.381 GB, free: 21.7 MB / 0.6046 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002646/15.23, allocations: 0 / 4.381 GB, free: 21.7 MB / 0.6046 GB Notification: Performance of setup shared object (initialization): time 0.0002665/15.23, allocations: 391.1 kB / 4.381 GB, free: 21.39 MB / 0.6046 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00257/15.23, allocations: 1.013 MB / 4.382 GB, free: 21.38 MB / 0.6046 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00315/15.23, allocations: 1.456 MB / 4.384 GB, free: 20.92 MB / 0.6046 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01484/15.25, allocations: 1.962 MB / 4.385 GB, free: 20.87 MB / 0.6046 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.699e-05/15.25, allocations: 3.844 kB / 4.385 GB, free: 20.87 MB / 0.6046 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.02058/15.27, allocations: 3.59 MB / 4.389 GB, free: 20.69 MB / 0.6046 GB Notification: Performance of prepare postOptimizeDAE: time 0.002128/15.27, allocations: 4.332 MB / 4.393 GB, free: 16.15 MB / 0.6046 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-05/15.27, allocations: 14.22 kB / 4.393 GB, free: 16.15 MB / 0.6046 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/15.27, allocations: 225.5 kB / 4.393 GB, free: 16.11 MB / 0.6046 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004534/15.28, allocations: 0.5244 MB / 4.394 GB, free: 16.11 MB / 0.6046 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002529/15.28, allocations: 2.449 MB / 4.396 GB, free: 14.03 MB / 0.6046 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005318/15.28, allocations: 304.9 kB / 4.397 GB, free: 14 MB / 0.6046 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009051/15.28, allocations: 110 kB / 4.397 GB, free: 14 MB / 0.6046 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/15.28, allocations: 3.156 kB / 4.397 GB, free: 14 MB / 0.6046 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01859/15.3, allocations: 3.256 MB / 4.4 GB, free: 13.89 MB / 0.6046 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.785e-05/15.3, allocations: 13.12 kB / 4.4 GB, free: 13.88 MB / 0.6046 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008425/15.3, allocations: 220.1 kB / 4.4 GB, free: 13.85 MB / 0.6046 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00452/15.31, allocations: 0.5125 MB / 4.401 GB, free: 13.85 MB / 0.6046 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002469/15.31, allocations: 2.452 MB / 4.403 GB, free: 11.77 MB / 0.6046 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004143/15.32, allocations: 288.2 kB / 4.403 GB, free: 11.74 MB / 0.6046 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000637/15.32, allocations: 102.2 kB / 4.403 GB, free: 11.74 MB / 0.6046 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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,source.medium.phase,sink.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001043/15.32, allocations: 235.2 kB / 4.404 GB, free: 11.57 MB / 0.6046 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01843/15.34, allocations: 3.153 MB / 4.407 GB, free: 11.34 MB / 0.6046 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009652/15.34, allocations: 197.1 kB / 4.407 GB, free: 11.24 MB / 0.6046 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02608/15.36, allocations: 7.045 MB / 4.414 GB, free: 10.71 MB / 0.6046 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.555e-05/15.36, allocations: 72.12 kB / 4.414 GB, free: 10.71 MB / 0.6046 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-05/15.36, allocations: 7.375 kB / 4.414 GB, free: 10.71 MB / 0.6046 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02292/15.39, allocations: 6.14 MB / 4.42 GB, free: 9.945 MB / 0.6046 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03598/15.42, allocations: 11.22 MB / 4.431 GB, free: 8.574 MB / 0.6046 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.71e-05/15.42, allocations: 10.95 kB / 4.431 GB, free: 8.574 MB / 0.6046 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003025/15.43, allocations: 395.4 kB / 4.431 GB, free: 8.566 MB / 0.6046 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001414/15.43, allocations: 321.8 kB / 4.432 GB, free: 8.523 MB / 0.6046 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003556/15.43, allocations: 46.05 kB / 4.432 GB, free: 8.523 MB / 0.6046 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002898/15.43, allocations: 2.637 MB / 4.434 GB, free: 22.43 MB / 0.6202 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.126e-05/15.43, allocations: 7.469 kB / 4.434 GB, free: 22.43 MB / 0.6202 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02496/15.45, allocations: 7.634 MB / 4.442 GB, free: 20.59 MB / 0.6202 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002289/15.46, allocations: 0.7107 MB / 4.442 GB, free: 20.12 MB / 0.6202 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006087/15.46, allocations: 29 kB / 4.442 GB, free: 20.1 MB / 0.6202 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002893/15.46, allocations: 182.4 kB / 4.442 GB, free: 19.97 MB / 0.6202 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004259/15.46, allocations: 157.1 kB / 4.443 GB, free: 19.89 MB / 0.6202 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002515/15.46, allocations: 81.58 kB / 4.443 GB, free: 19.83 MB / 0.6202 GB Notification: Performance of sorting global known variables: time 0.002061/15.46, allocations: 1.05 MB / 4.444 GB, free: 19.21 MB / 0.6202 GB Notification: Performance of sort global known variables: time 6.61e-07/15.46, allocations: 4.938 kB / 4.444 GB, free: 19.21 MB / 0.6202 GB Notification: Performance of remove unused functions: time 0.01227/15.48, allocations: 2.627 MB / 4.446 GB, free: 16.99 MB / 0.6202 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 8 (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) * Number of discrete variables: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.region3boundary,$cse29.region3boundary,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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) * 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 (198): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.04289/15.52, allocations: 12.75 MB / 4.459 GB, free: 8.105 MB / 0.6202 GB Notification: Performance of simCode: created initialization part: time 0.01221/15.53, allocations: 4.718 MB / 4.463 GB, free: 5.367 MB / 0.6202 GB Notification: Performance of simCode: created event and clocks part: time 1.506e-05/15.53, allocations: 0 / 4.463 GB, free: 5.367 MB / 0.6202 GB Notification: Performance of simCode: created simulation system equations: time 0.005937/15.54, allocations: 2.391 MB / 4.466 GB, free: 4.117 MB / 0.6202 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007953/15.55, allocations: 0.8388 MB / 4.467 GB, free: 3.648 MB / 0.6202 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4704/16.02, allocations: 6.916 MB / 4.473 GB, free: 120.3 MB / 0.6202 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003408/16.02, allocations: 2.156 MB / 4.475 GB, free: 119.5 MB / 0.6202 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003524/16.02, allocations: 1.276 MB / 4.477 GB, free: 119.5 MB / 0.6202 GB Notification: Performance of SimCode: time 1.583e-06/16.02, allocations: 1.562 kB / 4.477 GB, free: 119.5 MB / 0.6202 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.147/21.17, allocations: 126.9 MB / 4.601 GB, free: 103.7 MB / 0.6202 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat