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.BranchingPipes2.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.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.943/1.943, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004519/0.0004519, allocations: 15.98 kB / 282.7 MB, free: 9.547 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.3691, allocations: 48.69 MB / 331.4 MB, free: 6.395 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.508/7.878, allocations: 2.562 GB / 2.886 GB, free: 98.02 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003419/7.878, allocations: 81.62 kB / 2.886 GB, free: 98.02 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.116/11.99, allocations: 0.7809 GB / 3.667 GB, free: 18.45 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.936e-06/11.99, allocations: 0 / 3.667 GB, free: 18.45 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003152/11.99, allocations: 62.17 kB / 3.667 GB, free: 18.43 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: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.02022/12.01, allocations: 3.792 MB / 3.67 GB, free: 16.29 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/12.01, allocations: 6.562 kB / 3.67 GB, free: 16.29 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001437/12.02, allocations: 270.2 kB / 3.671 GB, free: 16.14 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008357/12.02, allocations: 0.7567 MB / 3.671 GB, free: 15.95 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008425/12.03, allocations: 2.008 MB / 3.673 GB, free: 14.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003244/12.03, allocations: 166.1 kB / 3.674 GB, free: 14.62 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009925/12.03, allocations: 174.6 kB / 3.674 GB, free: 14.45 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01206/12.05, allocations: 3.329 MB / 3.677 GB, free: 11.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-05/12.05, allocations: 3.938 kB / 3.677 GB, free: 11.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004197/12.05, allocations: 81.69 kB / 3.677 GB, free: 11.63 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002919/12.05, allocations: 144.7 kB / 3.677 GB, free: 11.51 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01251/12.06, allocations: 3.167 MB / 3.68 GB, free: 8.914 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.02663/12.09, allocations: 13.63 MB / 3.694 GB, free: 11.21 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008579/12.1, allocations: 2.034 MB / 3.696 GB, free: 9.168 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5771/12.67, allocations: 18.8 MB / 3.714 GB, free: 29.7 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006988/12.68, allocations: 1.576 MB / 3.716 GB, free: 29.59 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002157/12.68, allocations: 168.4 kB / 3.716 GB, free: 29.59 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 1.381e-05/12.68, allocations: 0 / 3.716 GB, free: 29.59 MB / 474.7 MB Notification: Performance of matching and sorting (n=163): time 0.03881/12.72, allocations: 8.303 MB / 3.724 GB, free: 28.55 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/12.72, allocations: 256.6 kB / 3.724 GB, free: 28.27 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00279/12.72, allocations: 1.273 MB / 3.725 GB, free: 28.1 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005964/12.72, allocations: 54.67 kB / 3.725 GB, free: 28.07 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008893/12.73, allocations: 0.8229 MB / 3.726 GB, free: 27.73 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009979/12.73, allocations: 0.547 MB / 3.727 GB, free: 27.46 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002086/12.73, allocations: 38.31 kB / 3.727 GB, free: 27.46 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/12.73, allocations: 384 kB / 3.727 GB, free: 27.14 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003162/12.73, allocations: 1.012 MB / 3.728 GB, free: 27.14 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003635/12.73, allocations: 1.442 MB / 3.729 GB, free: 26.71 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003628/12.74, allocations: 1.248 MB / 3.731 GB, free: 26.62 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.467e-05/12.74, allocations: 6.438 kB / 3.731 GB, free: 26.62 MB / 474.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.01043/12.75, allocations: 3.02 MB / 3.734 GB, free: 26.42 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001031/12.75, allocations: 4.257 MB / 3.738 GB, free: 22 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.809e-05/12.75, allocations: 9.719 kB / 3.738 GB, free: 22 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00455/12.75, allocations: 0.5304 MB / 3.738 GB, free: 21.96 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003745/12.76, allocations: 453.3 kB / 3.739 GB, free: 21.96 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002511/12.76, allocations: 2.705 MB / 3.741 GB, free: 19.89 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004298/12.76, allocations: 255.4 kB / 3.742 GB, free: 19.88 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006266/12.76, allocations: 96.31 kB / 3.742 GB, free: 19.88 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/12.76, allocations: 10.67 kB / 3.742 GB, free: 19.88 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008754/12.77, allocations: 2.767 MB / 3.744 GB, free: 19.74 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.922e-05/12.77, allocations: 13.5 kB / 3.744 GB, free: 19.74 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/12.77, allocations: 208 kB / 3.745 GB, free: 19.72 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003761/12.78, allocations: 470.2 kB / 3.745 GB, free: 19.72 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001427/12.78, allocations: 1.871 MB / 3.747 GB, free: 18.17 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003422/12.78, allocations: 253.9 kB / 3.747 GB, free: 18.16 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004679/12.78, allocations: 99.34 kB / 3.747 GB, free: 18.16 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.002374/12.79, allocations: 0.7158 MB / 3.748 GB, free: 17.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007407/12.79, allocations: 190.8 kB / 3.748 GB, free: 17.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01615/12.8, allocations: 7.44 MB / 3.755 GB, free: 17.15 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.504e-05/12.8, allocations: 78.02 kB / 3.755 GB, free: 17.15 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/12.8, allocations: 0 / 3.755 GB, free: 17.15 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01247/12.82, allocations: 6.532 MB / 3.762 GB, free: 16.23 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02632/12.84, allocations: 11.17 MB / 3.773 GB, free: 15.09 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.606e-05/12.84, allocations: 3.031 kB / 3.773 GB, free: 15.09 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002844/12.85, allocations: 363.4 kB / 3.773 GB, free: 15.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004377/12.85, allocations: 1.173 MB / 3.774 GB, free: 15.04 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005536/12.85, allocations: 62.72 kB / 3.774 GB, free: 15.04 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003102/12.85, allocations: 3.195 MB / 3.777 GB, free: 12.94 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.578e-06/12.85, allocations: 9.281 kB / 3.777 GB, free: 12.94 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01631/12.87, allocations: 7.445 MB / 3.785 GB, free: 11.68 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002374/12.87, allocations: 0.6939 MB / 3.785 GB, free: 11.36 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008966/12.87, allocations: 57.97 kB / 3.785 GB, free: 11.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003123/12.88, allocations: 183.5 kB / 3.786 GB, free: 11.35 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005909/12.88, allocations: 150.6 kB / 3.786 GB, free: 11.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002611/12.88, allocations: 72.58 kB / 3.786 GB, free: 11.34 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002697/12.88, allocations: 1.081 MB / 3.787 GB, free: 11.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.403e-06/12.88, allocations: 0 / 3.787 GB, free: 11.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01279/12.89, allocations: 2.538 MB / 3.789 GB, free: 11.09 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.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.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.03115/12.92, allocations: 11.42 MB / 3.801 GB, free: 8.098 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01361/12.94, allocations: 4.746 MB / 3.805 GB, free: 7.773 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.5e-05/12.94, allocations: 1.984 kB / 3.805 GB, free: 7.773 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005935/12.94, allocations: 2.449 MB / 3.808 GB, free: 7.633 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007845/12.95, allocations: 0.8473 MB / 3.808 GB, free: 7.594 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8446/13.8, allocations: 137.3 MB / 3.942 GB, free: 54.16 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002455/13.8, allocations: 2.127 MB / 3.945 GB, free: 53.42 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00263/13.8, allocations: 1.218 MB / 3.946 GB, free: 53.42 MB / 0.4948 GB Notification: Performance of SimCode: time 1.403e-06/13.8, allocations: 2.625 kB / 3.946 GB, free: 53.42 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.073/18.87, allocations: 119 MB / 4.062 GB, free: 9.426 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat