Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.258/2.258, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.025e-05/2.02e-05, allocations: 0 / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3394, allocations: 54.85 MB / 358.1 MB, free: 14.88 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.819/8.159, allocations: 2.677 GB / 3.027 GB, free: 72.28 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002715/8.159, allocations: 82.39 kB / 3.027 GB, free: 72.23 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.705/13.86, allocations: 0.9989 GB / 4.026 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.913e-06/13.86, allocations: 4 kB / 4.026 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003527/13.86, allocations: 67.12 kB / 4.026 GB, free: 24.74 MB / 0.5105 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.02023/13.88, allocations: 4.235 MB / 4.03 GB, free: 21.83 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/13.88, allocations: 12.03 kB / 4.03 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01026/13.89, allocations: 0.9372 MB / 4.031 GB, free: 21.07 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009254/13.9, allocations: 2.203 MB / 4.033 GB, free: 19.29 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003107/13.9, allocations: 103.3 kB / 4.033 GB, free: 19.2 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001251/13.91, allocations: 132 kB / 4.033 GB, free: 19.07 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008776/13.91, allocations: 2.791 MB / 4.036 GB, free: 16.58 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01156/13.93, allocations: 3.01 MB / 4.039 GB, free: 13.83 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001077/13.93, allocations: 3.938 kB / 4.039 GB, free: 13.83 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000434/13.93, allocations: 12 kB / 4.039 GB, free: 13.82 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003203/13.93, allocations: 172.9 kB / 4.039 GB, free: 13.67 MB / 0.5105 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.6445/14.57, allocations: 49.7 MB / 4.087 GB, free: 31.33 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005959/14.58, allocations: 2.323 MB / 4.09 GB, free: 30.74 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003136/14.58, allocations: 1.171 MB / 4.091 GB, free: 30.73 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06735/14.65, allocations: 17.21 MB / 4.108 GB, free: 20.03 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004881/14.65, allocations: 1.353 MB / 4.109 GB, free: 19.86 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=186): time 8.547e-06/14.65, allocations: 2.562 kB / 4.109 GB, free: 19.86 MB / 0.5261 GB Notification: Performance of matching and sorting (n=206): time 0.1041/14.76, allocations: 10.29 MB / 4.119 GB, free: 18.22 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001644/14.76, allocations: 372.8 kB / 4.119 GB, free: 17.81 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002654/14.76, allocations: 1.148 MB / 4.121 GB, free: 17.64 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008334/14.76, allocations: 30.03 kB / 4.121 GB, free: 17.61 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001336/14.76, allocations: 1.025 MB / 4.122 GB, free: 17.18 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001374/14.76, allocations: 0.6689 MB / 4.122 GB, free: 16.83 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002965/14.76, allocations: 1.312 kB / 4.122 GB, free: 16.83 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002008/14.76, allocations: 413.5 kB / 4.123 GB, free: 16.52 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002991/14.77, allocations: 1.098 MB / 4.124 GB, free: 16.51 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004231/14.77, allocations: 1.628 MB / 4.125 GB, free: 15.96 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01808/14.79, allocations: 2.093 MB / 4.127 GB, free: 15.94 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.339e-05/14.79, allocations: 5.938 kB / 4.127 GB, free: 15.94 MB / 0.5261 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.02729/14.82, allocations: 3.872 MB / 4.131 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001357/14.82, allocations: 5.467 MB / 4.136 GB, free: 10.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.727e-05/14.82, allocations: 15.06 kB / 4.136 GB, free: 10.09 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001427/14.82, allocations: 307.9 kB / 4.137 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005247/14.83, allocations: 0.5985 MB / 4.137 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003489/14.83, allocations: 3.147 MB / 4.14 GB, free: 23.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005655/14.84, allocations: 321.7 kB / 4.141 GB, free: 23.44 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000958/14.84, allocations: 123 kB / 4.141 GB, free: 23.44 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/14.84, allocations: 4.688 kB / 4.141 GB, free: 23.44 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01957/14.86, allocations: 3.488 MB / 4.144 GB, free: 23.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-05/14.86, allocations: 13.38 kB / 4.144 GB, free: 23.35 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/14.86, allocations: 318.9 kB / 4.145 GB, free: 23.31 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005009/14.86, allocations: 0.5904 MB / 4.145 GB, free: 23.31 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00328/14.87, allocations: 3.14 MB / 4.148 GB, free: 20.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004606/14.87, allocations: 297.6 kB / 4.148 GB, free: 20.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008139/14.87, allocations: 119.5 kB / 4.149 GB, free: 20.7 MB / 0.5417 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.junctionVolume.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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,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,junctionVolume.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 (287): * Single equations (assignments): 280 * 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,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001121/14.87, allocations: 258.7 kB / 4.149 GB, free: 20.52 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01986/14.89, allocations: 3.383 MB / 4.152 GB, free: 20.29 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001181/14.89, allocations: 210 kB / 4.152 GB, free: 20.19 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02939/14.92, allocations: 8 MB / 4.16 GB, free: 19.5 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001068/14.92, allocations: 82.77 kB / 4.16 GB, free: 19.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.569e-05/14.92, allocations: 0 / 4.16 GB, free: 19.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02577/14.95, allocations: 6.913 MB / 4.167 GB, free: 18.63 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0414/14.99, allocations: 12.47 MB / 4.179 GB, free: 17.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.2e-05/14.99, allocations: 5.562 kB / 4.179 GB, free: 17.14 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003632/14.99, allocations: 454.8 kB / 4.18 GB, free: 17.14 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001819/15, allocations: 430.4 kB / 4.18 GB, free: 17.08 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000597/15, allocations: 49.33 kB / 4.18 GB, free: 17.08 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003198/15, allocations: 3.367 MB / 4.183 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-05/15, allocations: 10.59 kB / 4.183 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02804/15.03, allocations: 8.369 MB / 4.192 GB, free: 12.95 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002726/15.03, allocations: 0.781 MB / 4.192 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000916/15.03, allocations: 24.44 kB / 4.192 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003761/15.04, allocations: 199.3 kB / 4.193 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000746/15.04, allocations: 182.6 kB / 4.193 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003078/15.04, allocations: 96.45 kB / 4.193 GB, free: 12.58 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002435/15.04, allocations: 1.079 MB / 4.194 GB, free: 12.44 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.021e-06/15.04, allocations: 0 / 4.194 GB, free: 12.44 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01517/15.05, allocations: 2.759 MB / 4.197 GB, free: 12.33 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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: 51 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse49.phase,$cse49.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,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (228): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 21 * 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.0456/15.1, allocations: 13.69 MB / 4.21 GB, free: 8.383 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01302/15.11, allocations: 5.282 MB / 4.215 GB, free: 8.066 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.376e-05/15.11, allocations: 0 / 4.215 GB, free: 8.066 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006249/15.12, allocations: 2.686 MB / 4.218 GB, free: 7.93 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009167/15.13, allocations: 1.004 MB / 4.219 GB, free: 7.855 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7955/15.92, allocations: 62.39 MB / 4.28 GB, free: 72.34 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004808/15.93, allocations: 2.291 MB / 4.282 GB, free: 71.6 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005466/15.93, allocations: 1.398 MB / 4.283 GB, free: 71.6 MB / 0.5573 GB Notification: Performance of SimCode: time 2.174e-06/15.93, allocations: 2.188 kB / 4.283 GB, free: 71.6 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.51/21.44, allocations: 149.1 MB / 4.429 GB, free: 36.04 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat