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.378/2.378, allocations: 235 MB / 248.1 MB, free: 14.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.531e-05/3.54e-05, allocations: 4 kB / 309.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4014/0.4014, allocations: 54.85 MB / 364.6 MB, free: 5.516 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.968/8.369, allocations: 2.678 GB / 3.034 GB, free: 79.98 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/8.37, allocations: 75.41 kB / 3.034 GB, free: 79.94 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.507/13.88, allocations: 1.008 GB / 4.041 GB, free: 23.76 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.435e-06/13.88, allocations: 0 / 4.041 GB, free: 23.76 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003922/13.88, allocations: 74.3 kB / 4.041 GB, free: 23.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.02091/13.9, allocations: 4.249 MB / 4.046 GB, free: 20.63 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/13.9, allocations: 12.03 kB / 4.046 GB, free: 20.62 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001632/13.9, allocations: 320.3 kB / 4.046 GB, free: 20.35 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01024/13.91, allocations: 0.9372 MB / 4.047 GB, free: 19.6 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009763/13.92, allocations: 2.201 MB / 4.049 GB, free: 17.79 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004081/13.92, allocations: 200 kB / 4.049 GB, free: 17.59 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001325/13.92, allocations: 222.9 kB / 4.049 GB, free: 17.38 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01512/13.94, allocations: 3.871 MB / 4.053 GB, free: 13.96 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001477/13.94, allocations: 7.938 kB / 4.053 GB, free: 13.95 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001096/13.94, allocations: 95.97 kB / 4.053 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003577/13.94, allocations: 170.3 kB / 4.053 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01331/13.95, allocations: 3.432 MB / 4.057 GB, free: 10.76 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.03719/13.99, allocations: 16.73 MB / 4.073 GB, free: 9.094 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01107/14, allocations: 3.041 MB / 4.076 GB, free: 5.957 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00393/14, allocations: 1.237 MB / 4.077 GB, free: 4.723 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5326/14.54, allocations: 18.61 MB / 4.095 GB, free: 33.76 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008218/14.55, allocations: 1.849 MB / 4.097 GB, free: 33.64 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=192): time 8.106e-06/14.55, allocations: 1.156 kB / 4.097 GB, free: 33.64 MB / 0.5261 GB Notification: Performance of matching and sorting (n=212): time 0.04323/14.59, allocations: 8.637 MB / 4.106 GB, free: 32.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/14.59, allocations: 266.3 kB / 4.106 GB, free: 32.52 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003428/14.59, allocations: 1.431 MB / 4.107 GB, free: 32.29 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007899/14.59, allocations: 67.61 kB / 4.107 GB, free: 32.25 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001251/14.59, allocations: 0.9779 MB / 4.108 GB, free: 31.86 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001545/14.6, allocations: 0.7052 MB / 4.109 GB, free: 31.51 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003527/14.6, allocations: 50.66 kB / 4.109 GB, free: 31.51 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002316/14.6, allocations: 405.8 kB / 4.109 GB, free: 31.2 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003374/14.6, allocations: 1.125 MB / 4.111 GB, free: 31.19 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004303/14.6, allocations: 1.669 MB / 4.112 GB, free: 30.63 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004327/14.61, allocations: 1.405 MB / 4.114 GB, free: 30.54 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.009e-05/14.61, allocations: 2.906 kB / 4.114 GB, free: 30.54 MB / 0.5261 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.01184/14.62, allocations: 3.326 MB / 4.117 GB, free: 30.31 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.00144/14.62, allocations: 5.464 MB / 4.122 GB, free: 24.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.165e-05/14.62, allocations: 20.05 kB / 4.122 GB, free: 24.63 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00195/14.62, allocations: 330.5 kB / 4.122 GB, free: 24.59 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005258/14.63, allocations: 0.5963 MB / 4.123 GB, free: 24.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0025/14.63, allocations: 3.099 MB / 4.126 GB, free: 22 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005617/14.64, allocations: 338.4 kB / 4.126 GB, free: 21.99 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001039/14.64, allocations: 123.2 kB / 4.127 GB, free: 21.99 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/14.64, allocations: 3.969 kB / 4.127 GB, free: 21.99 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01105/14.65, allocations: 3.155 MB / 4.13 GB, free: 21.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.904e-05/14.65, allocations: 18.77 kB / 4.13 GB, free: 21.84 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0017/14.65, allocations: 330.1 kB / 4.13 GB, free: 21.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005047/14.66, allocations: 0.595 MB / 4.131 GB, free: 21.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002314/14.66, allocations: 3.088 MB / 4.134 GB, free: 19.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004516/14.66, allocations: 338.2 kB / 4.134 GB, free: 19.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007417/14.66, allocations: 121.2 kB / 4.134 GB, free: 19.2 MB / 0.5261 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 () * 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.001036/14.67, allocations: 331 kB / 4.134 GB, free: 19.02 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008081/14.67, allocations: 225 kB / 4.135 GB, free: 18.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01872/14.69, allocations: 8.109 MB / 4.142 GB, free: 18.09 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001256/14.69, allocations: 92.95 kB / 4.143 GB, free: 18.09 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-05/14.69, allocations: 0 / 4.143 GB, free: 18.09 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01469/14.7, allocations: 7.02 MB / 4.149 GB, free: 17.13 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03165/14.73, allocations: 13.03 MB / 4.162 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.022e-05/14.73, allocations: 7.031 kB / 4.162 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004005/14.74, allocations: 483.5 kB / 4.163 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002528/14.74, allocations: 452.6 kB / 4.163 GB, free: 15.44 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008301/14.74, allocations: 79.28 kB / 4.163 GB, free: 15.44 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002524/14.74, allocations: 3.221 MB / 4.166 GB, free: 12.85 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.15e-05/14.74, allocations: 6.188 kB / 4.166 GB, free: 12.85 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01701/14.76, allocations: 8.102 MB / 4.174 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002853/14.76, allocations: 0.7909 MB / 4.175 GB, free: 11.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009072/14.76, allocations: 66.17 kB / 4.175 GB, free: 11.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003942/14.77, allocations: 240.9 kB / 4.175 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007417/14.77, allocations: 195.7 kB / 4.175 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003234/14.77, allocations: 98.56 kB / 4.175 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002846/14.77, allocations: 1.18 MB / 4.177 GB, free: 10.88 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.363e-06/14.77, allocations: 0 / 4.177 GB, free: 10.88 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01529/14.79, allocations: 2.911 MB / 4.179 GB, free: 10.77 MB / 0.5261 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) * 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.03331/14.82, allocations: 12.92 MB / 4.192 GB, free: 7.312 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01469/14.83, allocations: 5.555 MB / 4.198 GB, free: 6.969 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-05/14.83, allocations: 5.625 kB / 4.198 GB, free: 6.969 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007379/14.84, allocations: 2.935 MB / 4.2 GB, free: 6.832 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01024/14.85, allocations: 1.141 MB / 4.202 GB, free: 6.805 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9552/15.81, allocations: 131.1 MB / 4.33 GB, free: 69.93 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004436/15.81, allocations: 2.345 MB / 4.332 GB, free: 69.18 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004914/15.82, allocations: 1.45 MB / 4.333 GB, free: 69.17 MB / 0.5573 GB Notification: Performance of SimCode: time 1.884e-06/15.82, allocations: 0 / 4.333 GB, free: 69.17 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.583/21.4, allocations: 152.6 MB / 4.482 GB, free: 6.316 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