Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.953/1.953, allocations: 209.2 MB / 224.8 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006424/0.0006425, allocations: 8 kB / 282.7 MB, free: 9.559 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3577, allocations: 48.7 MB / 331.4 MB, free: 6.402 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.494/7.851, allocations: 2.545 GB / 2.869 GB, free: 92.31 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/7.852, allocations: 80.14 kB / 2.869 GB, free: 92.31 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.3/12.15, allocations: 0.7842 GB / 3.653 GB, free: 19.42 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.725e-06/12.15, allocations: 4 kB / 3.653 GB, free: 19.41 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003533/12.15, allocations: 67.42 kB / 3.653 GB, free: 19.4 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.0233/12.18, allocations: 4.134 MB / 3.657 GB, free: 17.05 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/12.18, allocations: 7.219 kB / 3.657 GB, free: 17.05 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001742/12.18, allocations: 305.4 kB / 3.658 GB, free: 16.89 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009068/12.19, allocations: 0.8088 MB / 3.658 GB, free: 16.67 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009534/12.2, allocations: 2.176 MB / 3.66 GB, free: 15.7 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003085/12.2, allocations: 174.6 kB / 3.661 GB, free: 15.62 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001115/12.2, allocations: 197.4 kB / 3.661 GB, free: 15.57 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01348/12.21, allocations: 3.707 MB / 3.664 GB, free: 14.02 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.792e-05/12.21, allocations: 7.938 kB / 3.664 GB, free: 14.02 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004655/12.21, allocations: 91.19 kB / 3.665 GB, free: 13.96 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003164/12.21, allocations: 159.8 kB / 3.665 GB, free: 13.94 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01404/12.23, allocations: 3.53 MB / 3.668 GB, free: 12.86 MB / 458.7 MB 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.0316/12.26, allocations: 14.74 MB / 3.682 GB, free: 16.76 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008242/12.27, allocations: 2.193 MB / 3.685 GB, free: 14.96 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4571/12.72, allocations: 18.86 MB / 3.703 GB, free: 31.81 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007094/12.73, allocations: 1.667 MB / 3.705 GB, free: 31.69 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001966/12.73, allocations: 188.2 kB / 3.705 GB, free: 31.69 MB / 474.7 MB Notification: Performance of pre-optimization done (n=158): time 9.758e-06/12.73, allocations: 0 / 3.705 GB, free: 31.69 MB / 474.7 MB Notification: Performance of matching and sorting (n=170): time 0.04509/12.78, allocations: 9.153 MB / 3.714 GB, free: 30.62 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001665/12.78, allocations: 414.2 kB / 3.714 GB, free: 30.15 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003956/12.78, allocations: 1.513 MB / 3.716 GB, free: 29.98 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00064/12.78, allocations: 59.73 kB / 3.716 GB, free: 29.95 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001191/12.78, allocations: 0.9204 MB / 3.717 GB, free: 29.59 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001137/12.78, allocations: 0.5816 MB / 3.717 GB, free: 29.3 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002887/12.78, allocations: 39.41 kB / 3.717 GB, free: 29.3 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001971/12.79, allocations: 391 kB / 3.718 GB, free: 28.99 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004036/12.79, allocations: 1.153 MB / 3.719 GB, free: 28.98 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00442/12.79, allocations: 1.622 MB / 3.72 GB, free: 28.48 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004636/12.8, allocations: 1.401 MB / 3.722 GB, free: 28.39 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-05/12.8, allocations: 7.406 kB / 3.722 GB, free: 28.39 MB / 474.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.01083/12.81, allocations: 3.416 MB / 3.725 GB, free: 28.18 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001039/12.81, allocations: 4.426 MB / 3.729 GB, free: 23.58 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.092e-05/12.81, allocations: 14.06 kB / 3.729 GB, free: 23.58 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008496/12.82, allocations: 0.9854 MB / 3.73 GB, free: 23.55 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003838/12.82, allocations: 477.7 kB / 3.731 GB, free: 23.55 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00383/12.83, allocations: 3.157 MB / 3.734 GB, free: 21.46 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004235/12.83, allocations: 245.5 kB / 3.734 GB, free: 21.45 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004855/12.83, allocations: 105.9 kB / 3.734 GB, free: 21.45 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/12.83, allocations: 7.797 kB / 3.734 GB, free: 21.45 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01036/12.84, allocations: 3.201 MB / 3.737 GB, free: 21.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.019e-05/12.84, allocations: 18.72 kB / 3.737 GB, free: 21.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002008/12.84, allocations: 354 kB / 3.738 GB, free: 21.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003943/12.85, allocations: 493.2 kB / 3.738 GB, free: 21.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005198/12.85, allocations: 4.106 MB / 3.742 GB, free: 18.46 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003281/12.86, allocations: 230.5 kB / 3.742 GB, free: 18.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003431/12.86, allocations: 103 kB / 3.742 GB, free: 18.46 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.002629/12.86, allocations: 0.7627 MB / 3.743 GB, free: 18.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000834/12.86, allocations: 212.9 kB / 3.743 GB, free: 18.09 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01626/12.88, allocations: 7.864 MB / 3.751 GB, free: 17.44 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.71e-05/12.88, allocations: 81.95 kB / 3.751 GB, free: 17.44 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/12.88, allocations: 0 / 3.751 GB, free: 17.44 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01373/12.89, allocations: 6.882 MB / 3.758 GB, free: 16.52 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02309/12.91, allocations: 10.9 MB / 3.769 GB, free: 15.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-05/12.91, allocations: 2.562 kB / 3.769 GB, free: 15.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002912/12.92, allocations: 341.3 kB / 3.769 GB, free: 15.77 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008132/12.93, allocations: 2.141 MB / 3.771 GB, free: 15.68 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005874/12.93, allocations: 69.78 kB / 3.771 GB, free: 15.68 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004508/12.93, allocations: 4.106 MB / 3.775 GB, free: 13.57 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/12.93, allocations: 0 / 3.775 GB, free: 13.57 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01781/12.95, allocations: 7.96 MB / 3.783 GB, free: 12.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002455/12.95, allocations: 0.7473 MB / 3.784 GB, free: 12.57 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008825/12.95, allocations: 53.59 kB / 3.784 GB, free: 12.57 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003124/12.95, allocations: 195 kB / 3.784 GB, free: 12.56 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004679/12.96, allocations: 138 kB / 3.784 GB, free: 12.55 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002418/12.96, allocations: 71.28 kB / 3.784 GB, free: 12.55 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002741/12.96, allocations: 1.252 MB / 3.785 GB, free: 12.41 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.41e-07/12.96, allocations: 1.531 kB / 3.785 GB, free: 12.41 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01475/12.97, allocations: 2.805 MB / 3.788 GB, free: 12.29 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (168): * Single equations (assignments): 143 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03461/13.01, allocations: 10.49 MB / 3.798 GB, free: 10.91 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0165/13.02, allocations: 5.478 MB / 3.804 GB, free: 9.789 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/13.02, allocations: 0 / 3.804 GB, free: 9.789 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005732/13.03, allocations: 2.372 MB / 3.806 GB, free: 8.758 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008313/13.04, allocations: 0.8824 MB / 3.807 GB, free: 8.578 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7967/13.84, allocations: 138.3 MB / 3.942 GB, free: 51.75 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002393/13.84, allocations: 2.246 MB / 3.944 GB, free: 51 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002712/13.84, allocations: 1.313 MB / 3.945 GB, free: 51 MB / 0.4948 GB Notification: Performance of SimCode: time 1.462e-06/13.84, allocations: 0 / 3.945 GB, free: 51 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.54/19.38, allocations: 127.6 MB / 4.07 GB, free: 11.91 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat