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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.412/2.412, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004429/0.0004429, allocations: 12 kB / 314.5 MB, free: 9.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3701/0.3706, allocations: 54.87 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.789/8.16, allocations: 2.678 GB / 3.038 GB, free: 12.29 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/8.16, allocations: 87.45 kB / 3.038 GB, free: 12.24 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.938/14.1, allocations: 1.01 GB / 4.049 GB, free: 38.12 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.765e-06/14.1, allocations: 0 / 4.049 GB, free: 38.12 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003636/14.1, allocations: 70.89 kB / 4.049 GB, free: 38.11 MB / 0.5261 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.02215/14.12, allocations: 4.547 MB / 4.053 GB, free: 36.13 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/14.12, allocations: 13.44 kB / 4.053 GB, free: 36.13 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001964/14.12, allocations: 323.4 kB / 4.054 GB, free: 36.08 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/14.13, allocations: 0.9415 MB / 4.054 GB, free: 35.93 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009552/14.14, allocations: 2.214 MB / 4.057 GB, free: 35.46 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004226/14.14, allocations: 200 kB / 4.057 GB, free: 35.46 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00131/14.14, allocations: 227.7 kB / 4.057 GB, free: 35.46 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01545/14.16, allocations: 3.904 MB / 4.061 GB, free: 34.84 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001288/14.16, allocations: 5.969 kB / 4.061 GB, free: 34.84 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009119/14.16, allocations: 99.36 kB / 4.061 GB, free: 34.84 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003358/14.16, allocations: 172.8 kB / 4.061 GB, free: 34.84 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0148/14.18, allocations: 3.616 MB / 4.065 GB, free: 34.8 MB / 0.5261 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.03425/14.21, allocations: 16.72 MB / 4.081 GB, free: 24.71 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01161/14.22, allocations: 3.146 MB / 4.084 GB, free: 24.11 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05742/14.28, allocations: 18.57 MB / 4.102 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007978/14.29, allocations: 1.872 MB / 4.104 GB, free: 12.41 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=192): time 5.471e-06/14.29, allocations: 0 / 4.104 GB, free: 12.41 MB / 0.5261 GB Notification: Performance of matching and sorting (n=212): time 0.05103/14.34, allocations: 10.27 MB / 4.114 GB, free: 11.09 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006533/14.34, allocations: 264.1 kB / 4.114 GB, free: 26.81 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00348/14.34, allocations: 1.445 MB / 4.116 GB, free: 26.58 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0007783/14.34, allocations: 66.83 kB / 4.116 GB, free: 26.55 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001194/14.34, allocations: 0.9831 MB / 4.117 GB, free: 26.07 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001373/14.35, allocations: 0.7098 MB / 4.117 GB, free: 25.62 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003269/14.35, allocations: 44.5 kB / 4.117 GB, free: 25.62 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002785/14.35, allocations: 410.2 kB / 4.118 GB, free: 25.3 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00448/14.35, allocations: 1.271 MB / 4.119 GB, free: 25.3 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005307/14.36, allocations: 1.816 MB / 4.121 GB, free: 24.74 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005273/14.36, allocations: 1.535 MB / 4.122 GB, free: 24.66 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-05/14.36, allocations: 3.219 kB / 4.122 GB, free: 24.66 MB / 0.5417 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.01275/14.37, allocations: 3.595 MB / 4.126 GB, free: 24.43 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.00228/14.38, allocations: 5.469 MB / 4.131 GB, free: 18.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-05/14.38, allocations: 16.06 kB / 4.131 GB, free: 18.74 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002063/14.38, allocations: 352.8 kB / 4.132 GB, free: 18.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005189/14.38, allocations: 0.5986 MB / 4.132 GB, free: 18.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003097/14.39, allocations: 3.094 MB / 4.135 GB, free: 16.11 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005243/14.39, allocations: 343.4 kB / 4.136 GB, free: 16.09 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006352/14.39, allocations: 124 kB / 4.136 GB, free: 16.09 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/14.39, allocations: 3.688 kB / 4.136 GB, free: 16.09 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01117/14.4, allocations: 3.436 MB / 4.139 GB, free: 15.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.485e-05/14.4, allocations: 15.16 kB / 4.139 GB, free: 15.94 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001812/14.41, allocations: 351.4 kB / 4.139 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004779/14.41, allocations: 0.5926 MB / 4.14 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002963/14.41, allocations: 3.098 MB / 4.143 GB, free: 13.31 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00427/14.42, allocations: 334.3 kB / 4.143 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004534/14.42, allocations: 119.9 kB / 4.143 GB, free: 13.29 MB / 0.5417 GB 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,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,junctionVolume.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 (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,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00252/14.42, allocations: 0.7917 MB / 4.144 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007252/14.42, allocations: 224.8 kB / 4.144 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01853/14.44, allocations: 8.226 MB / 4.152 GB, free: 12.13 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001053/14.44, allocations: 87.47 kB / 4.152 GB, free: 12.13 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/14.44, allocations: 3.094 kB / 4.152 GB, free: 12.13 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01571/14.46, allocations: 7.136 MB / 4.159 GB, free: 11.21 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03236/14.49, allocations: 13.18 MB / 4.172 GB, free: 9.551 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.95e-05/14.49, allocations: 3.719 kB / 4.172 GB, free: 9.551 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003917/14.49, allocations: 486.9 kB / 4.173 GB, free: 9.547 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002858/14.5, allocations: 484.5 kB / 4.173 GB, free: 9.492 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007296/14.5, allocations: 74.03 kB / 4.173 GB, free: 9.492 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002994/14.5, allocations: 3.226 MB / 4.176 GB, free: 6.891 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.376e-05/14.5, allocations: 9.375 kB / 4.176 GB, free: 6.891 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01993/14.52, allocations: 8.49 MB / 4.185 GB, free: 5.414 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00272/14.52, allocations: 0.7994 MB / 4.186 GB, free: 5.066 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001013/14.52, allocations: 71.05 kB / 4.186 GB, free: 5.062 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00391/14.53, allocations: 232.3 kB / 4.186 GB, free: 5.031 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007674/14.53, allocations: 197.8 kB / 4.186 GB, free: 5.023 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003706/14.53, allocations: 94.12 kB / 4.186 GB, free: 5.023 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002738/14.53, allocations: 1.2 MB / 4.187 GB, free: 4.879 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.31e-07/14.53, allocations: 0 / 4.187 GB, free: 4.879 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01523/14.55, allocations: 2.919 MB / 4.19 GB, free: 4.52 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (237): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * 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.03697/14.58, allocations: 13.3 MB / 4.203 GB, free: 14.15 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01839/14.6, allocations: 5.947 MB / 4.209 GB, free: 12.01 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.571e-05/14.6, allocations: 7.125 kB / 4.209 GB, free: 12.01 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.008305/14.61, allocations: 3.044 MB / 4.212 GB, free: 10.73 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01032/14.62, allocations: 1.134 MB / 4.213 GB, free: 10.46 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8603/15.48, allocations: 143.5 MB / 4.353 GB, free: 40.08 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003644/15.49, allocations: 2.342 MB / 4.355 GB, free: 39.29 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00421/15.49, allocations: 1.448 MB / 4.357 GB, free: 39.28 MB / 0.5573 GB Notification: Performance of SimCode: time 1.393e-06/15.49, allocations: 1.219 kB / 4.357 GB, free: 39.28 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.847/21.34, allocations: 149.6 MB / 4.503 GB, free: 74.79 MB / 0.573 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