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.001571/0.001571, allocations: 188.9 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.039/2.039, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.00115/0.001149, allocations: 96.34 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5309/0.5309, allocations: 43.55 MB / 362.7 MB, free: 52.23 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004877/0.0004876, allocations: 19.98 kB / 431.5 MB, free: 6.078 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1302, allocations: 58.83 MB / 490.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.871/9.001, allocations: 2.846 GB / 3.325 GB, free: 38.16 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003162/9.001, allocations: 90.58 kB / 3.325 GB, free: 38.11 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.379/14.38, allocations: 0.9101 GB / 4.235 GB, free: 35.45 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.176e-06/14.38, allocations: 1.422 kB / 4.235 GB, free: 35.45 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003246/14.38, allocations: 70.52 kB / 4.235 GB, free: 35.44 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.02251/14.4, allocations: 4.255 MB / 4.24 GB, free: 33.63 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.42e-05/14.4, allocations: 10.06 kB / 4.24 GB, free: 33.63 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001681/14.4, allocations: 308.9 kB / 4.24 GB, free: 33.58 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009718/14.41, allocations: 0.8805 MB / 4.241 GB, free: 33.44 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009591/14.42, allocations: 2.115 MB / 4.243 GB, free: 33 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004227/14.42, allocations: 185.5 kB / 4.243 GB, free: 32.99 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001242/14.43, allocations: 203.3 kB / 4.243 GB, free: 32.99 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01378/14.44, allocations: 3.673 MB / 4.247 GB, free: 32.44 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-05/14.44, allocations: 8.406 kB / 4.247 GB, free: 32.44 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004589/14.44, allocations: 91.42 kB / 4.247 GB, free: 32.44 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003523/14.44, allocations: 166.1 kB / 4.247 GB, free: 32.43 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01375/14.45, allocations: 3.36 MB / 4.25 GB, free: 32.42 MB / 0.5417 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.03346/14.49, allocations: 15.63 MB / 4.266 GB, free: 22.98 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009999/14.5, allocations: 2.829 MB / 4.268 GB, free: 22.37 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07944/14.58, allocations: 24.49 MB / 4.292 GB, free: 23.34 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007038/14.58, allocations: 1.753 MB / 4.294 GB, free: 23.2 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=173): time 6.543e-06/14.58, allocations: 3.906 kB / 4.294 GB, free: 23.2 MB / 0.5573 GB Notification: Performance of matching and sorting (n=189): time 0.03977/14.62, allocations: 9.389 MB / 4.303 GB, free: 21.96 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001902/14.62, allocations: 256.5 kB / 4.303 GB, free: 21.68 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003005/14.63, allocations: 1.429 MB / 4.305 GB, free: 21.5 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006254/14.63, allocations: 66.08 kB / 4.305 GB, free: 21.47 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009073/14.63, allocations: 0.8927 MB / 4.306 GB, free: 21.04 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008412/14.63, allocations: 0.6273 MB / 4.306 GB, free: 20.64 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002603/14.63, allocations: 44.62 kB / 4.306 GB, free: 20.64 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002387/14.63, allocations: 390 kB / 4.307 GB, free: 20.33 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003589/14.63, allocations: 1.158 MB / 4.308 GB, free: 20.32 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003976/14.64, allocations: 1.613 MB / 4.31 GB, free: 19.88 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004103/14.64, allocations: 1.393 MB / 4.311 GB, free: 19.79 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.167e-05/14.64, allocations: 0.8438 kB / 4.311 GB, free: 19.79 MB / 0.5573 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01062/14.65, allocations: 3.268 MB / 4.314 GB, free: 19.57 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00203/14.66, allocations: 4.34 MB / 4.318 GB, free: 15.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.754e-05/14.66, allocations: 10.47 kB / 4.318 GB, free: 15.02 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001583/14.66, allocations: 247.4 kB / 4.319 GB, free: 14.98 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004599/14.66, allocations: 0.5204 MB / 4.319 GB, free: 14.98 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002347/14.66, allocations: 2.431 MB / 4.321 GB, free: 12.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005038/14.67, allocations: 310.8 kB / 4.322 GB, free: 12.87 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006855/14.67, allocations: 106.5 kB / 4.322 GB, free: 12.86 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/14.67, allocations: 3.688 kB / 4.322 GB, free: 12.86 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01029/14.68, allocations: 3.123 MB / 4.325 GB, free: 12.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.262e-05/14.68, allocations: 9.562 kB / 4.325 GB, free: 12.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001369/14.68, allocations: 248.2 kB / 4.325 GB, free: 12.67 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004384/14.69, allocations: 0.5156 MB / 4.326 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002775/14.69, allocations: 2.431 MB / 4.328 GB, free: 26.59 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003958/14.69, allocations: 308.9 kB / 4.328 GB, free: 26.55 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000387/14.69, allocations: 99.75 kB / 4.328 GB, free: 26.55 MB / 0.573 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,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,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 (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.002762/14.7, allocations: 0.7625 MB / 4.329 GB, free: 26.28 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008223/14.7, allocations: 222.5 kB / 4.329 GB, free: 26.17 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01898/14.72, allocations: 7.659 MB / 4.337 GB, free: 25.37 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001068/14.72, allocations: 91.98 kB / 4.337 GB, free: 25.37 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.448e-05/14.72, allocations: 2.734 kB / 4.337 GB, free: 25.37 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0151/14.73, allocations: 6.674 MB / 4.343 GB, free: 24.44 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03043/14.76, allocations: 12.38 MB / 4.356 GB, free: 21.91 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.322e-05/14.76, allocations: 6.969 kB / 4.356 GB, free: 21.91 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003678/14.77, allocations: 439.3 kB / 4.356 GB, free: 21.89 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002358/14.77, allocations: 372.1 kB / 4.356 GB, free: 21.77 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006721/14.77, allocations: 72.36 kB / 4.356 GB, free: 21.74 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002298/14.77, allocations: 2.531 MB / 4.359 GB, free: 19.46 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.156e-05/14.77, allocations: 12.59 kB / 4.359 GB, free: 19.46 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01839/14.79, allocations: 7.918 MB / 4.367 GB, free: 15.52 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00287/14.79, allocations: 0.7871 MB / 4.367 GB, free: 15.03 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000935/14.79, allocations: 56.5 kB / 4.367 GB, free: 15 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003692/14.8, allocations: 226.3 kB / 4.368 GB, free: 14.94 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000621/14.8, allocations: 176.2 kB / 4.368 GB, free: 14.92 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002976/14.8, allocations: 87.95 kB / 4.368 GB, free: 14.9 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002897/14.8, allocations: 1.275 MB / 4.369 GB, free: 14.41 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.31e-07/14.8, allocations: 0 / 4.369 GB, free: 14.41 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01465/14.82, allocations: 2.783 MB / 4.372 GB, free: 13.87 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.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) * 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 (214): * Single equations (assignments): 185 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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.03485/14.85, allocations: 12.59 MB / 4.384 GB, free: 7.453 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01613/14.87, allocations: 5.379 MB / 4.389 GB, free: 4.105 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.156e-05/14.87, allocations: 0 / 4.389 GB, free: 4.105 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.007174/14.87, allocations: 2.76 MB / 4.392 GB, free: 1.621 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009587/14.88, allocations: 1.058 MB / 4.393 GB, free: 0.8477 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4916/15.38, allocations: 18.81 MB / 4.411 GB, free: 76.34 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004383/15.38, allocations: 2.248 MB / 4.414 GB, free: 75.59 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003734/15.38, allocations: 1.349 MB / 4.415 GB, free: 75.59 MB / 0.5886 GB Notification: Performance of SimCode: time 1.754e-06/15.38, allocations: 0 / 4.415 GB, free: 75.59 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.416/20.8, allocations: 130.1 MB / 4.542 GB, free: 61.27 MB / 0.5886 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