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.BranchingPipes1.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.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.534/2.534, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004825/0.0004823, allocations: 11.98 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.373/0.3735, allocations: 54.85 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.002/8.376, allocations: 2.656 GB / 3.017 GB, free: 34.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/8.376, allocations: 77.47 kB / 3.017 GB, free: 34.46 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.263/12.64, allocations: 0.7968 GB / 3.814 GB, free: 5.855 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.278e-06/12.64, allocations: 4 kB / 3.814 GB, free: 5.852 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004431/12.64, allocations: 71.86 kB / 3.814 GB, free: 5.781 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02518/12.66, allocations: 4.243 MB / 3.818 GB, free: 1.453 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/12.66, allocations: 8.031 kB / 3.818 GB, free: 1.445 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001843/12.67, allocations: 303.1 kB / 3.818 GB, free: 1.141 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009664/12.68, allocations: 0.8437 MB / 3.819 GB, free: 300 kB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4345/13.11, allocations: 2.106 MB / 3.821 GB, free: 34.65 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004154/13.11, allocations: 175.8 kB / 3.821 GB, free: 34.65 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001294/13.11, allocations: 199.4 kB / 3.821 GB, free: 34.65 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01468/13.13, allocations: 3.716 MB / 3.825 GB, free: 34.1 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.075e-05/13.13, allocations: 11.05 kB / 3.825 GB, free: 34.1 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005281/13.13, allocations: 90.02 kB / 3.825 GB, free: 34.1 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003413/13.13, allocations: 162.9 kB / 3.825 GB, free: 34.09 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01369/13.14, allocations: 3.545 MB / 3.829 GB, free: 34.08 MB / 0.5105 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.03152/13.17, allocations: 14.76 MB / 3.843 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008192/13.18, allocations: 2.2 MB / 3.845 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05857/13.24, allocations: 18.88 MB / 3.864 GB, free: 29.77 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006752/13.25, allocations: 1.674 MB / 3.865 GB, free: 29.64 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002348/13.25, allocations: 194.6 kB / 3.865 GB, free: 29.6 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 1.393e-05/13.25, allocations: 0 / 3.865 GB, free: 29.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=174): time 0.04183/13.29, allocations: 9.117 MB / 3.874 GB, free: 28.36 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002704/13.29, allocations: 413 kB / 3.875 GB, free: 27.89 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003289/13.29, allocations: 1.514 MB / 3.876 GB, free: 27.72 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006134/13.3, allocations: 56.73 kB / 3.876 GB, free: 27.69 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009473/13.3, allocations: 0.9232 MB / 3.877 GB, free: 27.32 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008862/13.3, allocations: 0.585 MB / 3.878 GB, free: 27.02 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002299/13.3, allocations: 37.44 kB / 3.878 GB, free: 27.02 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002599/13.3, allocations: 395.1 kB / 3.878 GB, free: 26.71 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003494/13.3, allocations: 1.165 MB / 3.879 GB, free: 26.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004924/13.31, allocations: 1.631 MB / 3.881 GB, free: 26.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005697/13.31, allocations: 1.425 MB / 3.882 GB, free: 26.11 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.812e-05/13.31, allocations: 4.688 kB / 3.882 GB, free: 26.11 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.0152/13.33, allocations: 3.391 MB / 3.886 GB, free: 25.89 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002504/13.33, allocations: 4.425 MB / 3.89 GB, free: 21.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-05/13.33, allocations: 16.67 kB / 3.89 GB, free: 21.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01167/13.34, allocations: 0.9887 MB / 3.891 GB, free: 21.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005109/13.35, allocations: 473.8 kB / 3.891 GB, free: 21.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005965/13.35, allocations: 3.168 MB / 3.894 GB, free: 19.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005383/13.36, allocations: 229.8 kB / 3.895 GB, free: 19.17 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007029/13.36, allocations: 110 kB / 3.895 GB, free: 19.16 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/13.36, allocations: 3.688 kB / 3.895 GB, free: 19.16 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01454/13.37, allocations: 3.179 MB / 3.898 GB, free: 19.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001043/13.37, allocations: 19.34 kB / 3.898 GB, free: 19.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002814/13.38, allocations: 357.5 kB / 3.898 GB, free: 18.99 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005269/13.38, allocations: 497.1 kB / 3.899 GB, free: 18.99 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006001/13.39, allocations: 4.108 MB / 3.903 GB, free: 16.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003192/13.39, allocations: 229.8 kB / 3.903 GB, free: 16.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003581/13.39, allocations: 104.2 kB / 3.903 GB, free: 16.16 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.002273/13.39, allocations: 0.7715 MB / 3.904 GB, free: 15.89 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007256/13.39, allocations: 215.6 kB / 3.904 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0166/13.41, allocations: 7.843 MB / 3.912 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.983e-05/13.41, allocations: 84.33 kB / 3.912 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/13.41, allocations: 0 / 3.912 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0134/13.42, allocations: 6.875 MB / 3.918 GB, free: 14.12 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0226/13.45, allocations: 10.9 MB / 3.929 GB, free: 13.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-05/13.45, allocations: 0 / 3.929 GB, free: 13.33 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002928/13.45, allocations: 347.6 kB / 3.929 GB, free: 13.33 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009232/13.46, allocations: 2.141 MB / 3.932 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005869/13.46, allocations: 67.31 kB / 3.932 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005566/13.47, allocations: 4.117 MB / 3.936 GB, free: 27.12 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/13.47, allocations: 0 / 3.936 GB, free: 27.12 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01726/13.48, allocations: 7.981 MB / 3.943 GB, free: 26.43 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00249/13.49, allocations: 0.7567 MB / 3.944 GB, free: 26.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000905/13.49, allocations: 53.83 kB / 3.944 GB, free: 26.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003441/13.49, allocations: 197.9 kB / 3.944 GB, free: 26.09 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006715/13.49, allocations: 140.8 kB / 3.945 GB, free: 26.08 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002646/13.49, allocations: 66.2 kB / 3.945 GB, free: 26.08 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0032/13.49, allocations: 1.266 MB / 3.946 GB, free: 25.94 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.22e-07/13.49, allocations: 0 / 3.946 GB, free: 25.94 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01384/13.51, allocations: 2.823 MB / 3.949 GB, free: 25.81 MB / 0.5417 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: 55 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * 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 (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.03214/13.54, allocations: 10.53 MB / 3.959 GB, free: 23.08 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01659/13.56, allocations: 5.589 MB / 3.964 GB, free: 20.89 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/13.56, allocations: 0 / 3.964 GB, free: 20.89 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005644/13.56, allocations: 2.424 MB / 3.967 GB, free: 19.83 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00801/13.57, allocations: 0.8895 MB / 3.968 GB, free: 19.65 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8526/14.42, allocations: 141.3 MB / 4.106 GB, free: 46.51 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00245/14.43, allocations: 2.253 MB / 4.108 GB, free: 45.73 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003052/14.43, allocations: 1.316 MB / 4.109 GB, free: 45.72 MB / 0.5417 GB Notification: Performance of SimCode: time 1.122e-06/14.43, allocations: 0 / 4.109 GB, free: 45.72 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.848/20.28, allocations: 128.1 MB / 4.234 GB, free: 75.07 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat