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.BranchingPipes1.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.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.963/1.963, allocations: 209.2 MB / 224.8 MB, free: 1.539 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004519/0.000452, allocations: 19.98 kB / 282.7 MB, free: 9.668 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1088, allocations: 48.71 MB / 331.4 MB, free: 8.875 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.793/7.902, allocations: 2.545 GB / 2.869 GB, free: 75.64 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/7.902, allocations: 80.03 kB / 2.869 GB, free: 75.61 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.523/12.42, allocations: 0.7776 GB / 3.647 GB, free: 29.21 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.825e-06/12.42, allocations: 1.125 kB / 3.647 GB, free: 29.21 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004175/12.43, allocations: 71.48 kB / 3.647 GB, free: 29.21 MB / 474.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.02421/12.45, allocations: 4.118 MB / 3.651 GB, free: 27.69 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/12.45, allocations: 13.16 kB / 3.651 GB, free: 27.69 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001696/12.45, allocations: 292.7 kB / 3.651 GB, free: 27.64 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009013/12.46, allocations: 0.8172 MB / 3.652 GB, free: 27.5 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009586/12.47, allocations: 2.098 MB / 3.654 GB, free: 27.06 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004256/12.47, allocations: 171.7 kB / 3.654 GB, free: 27.06 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001349/12.47, allocations: 200.1 kB / 3.654 GB, free: 27.05 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01555/12.49, allocations: 3.713 MB / 3.658 GB, free: 26.5 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001075/12.49, allocations: 11.17 kB / 3.658 GB, free: 26.5 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000644/12.49, allocations: 87.48 kB / 3.658 GB, free: 26.5 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003593/12.49, allocations: 164.2 kB / 3.658 GB, free: 26.5 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01547/12.5, allocations: 3.533 MB / 3.662 GB, free: 26.48 MB / 474.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.03285/12.54, allocations: 14.74 MB / 3.676 GB, free: 17.91 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008613/12.55, allocations: 2.203 MB / 3.678 GB, free: 17.88 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0581/12.6, allocations: 18.85 MB / 3.696 GB, free: 22.05 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006632/12.61, allocations: 1.658 MB / 3.698 GB, free: 21.93 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001984/12.61, allocations: 193.3 kB / 3.698 GB, free: 21.84 MB / 490.7 MB Notification: Performance of pre-optimization done (n=158): time 7.223e-06/12.61, allocations: 2.188 kB / 3.698 GB, free: 21.84 MB / 490.7 MB Notification: Performance of matching and sorting (n=170): time 0.04312/12.66, allocations: 9.155 MB / 3.707 GB, free: 20.58 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002634/12.66, allocations: 415.5 kB / 3.708 GB, free: 20.11 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00378/12.66, allocations: 1.503 MB / 3.709 GB, free: 19.94 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006752/12.66, allocations: 59.39 kB / 3.709 GB, free: 19.91 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001162/12.66, allocations: 0.9293 MB / 3.71 GB, free: 19.46 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001108/12.66, allocations: 0.5719 MB / 3.711 GB, free: 19.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002897/12.66, allocations: 40.75 kB / 3.711 GB, free: 19.1 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002913/12.66, allocations: 392.5 kB / 3.711 GB, free: 18.78 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003822/12.67, allocations: 1.152 MB / 3.712 GB, free: 18.77 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004463/12.67, allocations: 1.619 MB / 3.714 GB, free: 18.27 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004522/12.68, allocations: 1.409 MB / 3.715 GB, free: 18.18 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.587e-05/12.68, allocations: 5.875 kB / 3.715 GB, free: 18.18 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.01139/12.69, allocations: 3.417 MB / 3.718 GB, free: 17.96 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001888/12.69, allocations: 4.421 MB / 3.723 GB, free: 13.37 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.282e-05/12.69, allocations: 17 kB / 3.723 GB, free: 13.37 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00858/12.7, allocations: 0.9874 MB / 3.724 GB, free: 13.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003908/12.7, allocations: 476.8 kB / 3.724 GB, free: 13.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004331/12.71, allocations: 3.164 MB / 3.727 GB, free: 11.25 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004196/12.71, allocations: 233.1 kB / 3.727 GB, free: 11.23 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007334/12.71, allocations: 110.4 kB / 3.728 GB, free: 11.23 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/12.71, allocations: 6.156 kB / 3.728 GB, free: 11.23 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01225/12.72, allocations: 3.194 MB / 3.731 GB, free: 11.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.398e-05/12.72, allocations: 18.75 kB / 3.731 GB, free: 11.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002029/12.73, allocations: 363.4 kB / 3.731 GB, free: 11.06 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004058/12.73, allocations: 495 kB / 3.732 GB, free: 11.06 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006383/12.74, allocations: 4.1 MB / 3.736 GB, free: 24.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003268/12.74, allocations: 237.3 kB / 3.736 GB, free: 24.22 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003747/12.74, allocations: 106.6 kB / 3.736 GB, free: 24.22 MB / 0.4948 GB 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,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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.002345/12.74, allocations: 0.7512 MB / 3.737 GB, free: 23.96 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007189/12.74, allocations: 212.6 kB / 3.737 GB, free: 23.86 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01701/12.76, allocations: 7.855 MB / 3.745 GB, free: 23.12 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001037/12.76, allocations: 83.16 kB / 3.745 GB, free: 23.12 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/12.76, allocations: 5.719 kB / 3.745 GB, free: 23.12 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01378/12.77, allocations: 6.889 MB / 3.751 GB, free: 22.19 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02349/12.8, allocations: 10.89 MB / 3.762 GB, free: 21.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.336e-05/12.8, allocations: 4.562 kB / 3.762 GB, free: 21.42 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002879/12.8, allocations: 344.3 kB / 3.762 GB, free: 21.42 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008145/12.81, allocations: 2.144 MB / 3.764 GB, free: 21.33 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006658/12.81, allocations: 70.66 kB / 3.764 GB, free: 21.33 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005402/12.82, allocations: 4.104 MB / 3.768 GB, free: 19.22 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/12.82, allocations: 2.906 kB / 3.768 GB, free: 19.22 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01829/12.83, allocations: 7.963 MB / 3.776 GB, free: 18.54 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002463/12.84, allocations: 0.747 MB / 3.777 GB, free: 18.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000777/12.84, allocations: 57.31 kB / 3.777 GB, free: 18.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002846/12.84, allocations: 185.8 kB / 3.777 GB, free: 18.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004451/12.84, allocations: 140.3 kB / 3.777 GB, free: 18.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002276/12.84, allocations: 72.17 kB / 3.777 GB, free: 18.2 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002716/12.84, allocations: 1.25 MB / 3.779 GB, free: 17.84 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.81e-07/12.84, allocations: 0 / 3.779 GB, free: 17.84 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01332/12.86, allocations: 2.809 MB / 3.781 GB, free: 17.25 MB / 0.4948 GB 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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.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.03179/12.89, allocations: 10.5 MB / 3.792 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01424/12.9, allocations: 5.457 MB / 3.797 GB, free: 10.93 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.101e-05/12.9, allocations: 7.438 kB / 3.797 GB, free: 10.93 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005462/12.91, allocations: 2.379 MB / 3.799 GB, free: 9.902 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00776/12.92, allocations: 0.8859 MB / 3.8 GB, free: 9.723 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8011/13.72, allocations: 138.9 MB / 3.936 GB, free: 53.67 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002385/13.72, allocations: 2.245 MB / 3.938 GB, free: 52.89 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002719/13.72, allocations: 1.307 MB / 3.939 GB, free: 52.89 MB / 0.5105 GB Notification: Performance of SimCode: time 1.333e-06/13.72, allocations: 2.734 kB / 3.939 GB, free: 52.89 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.868/19.59, allocations: 127.5 MB / 4.064 GB, free: 66.57 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat