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.BranchingPipes14.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.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.402/2.402, allocations: 235.1 MB / 243 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.95e-05/2.962e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4112/0.4113, allocations: 54.85 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.889/8.3, allocations: 2.676 GB / 3.026 GB, free: 74.92 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/8.301, allocations: 78.58 kB / 3.026 GB, free: 74.88 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.948/13.25, allocations: 0.8944 GB / 3.92 GB, free: 36.29 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.124e-06/13.25, allocations: 1.094 kB / 3.92 GB, free: 36.29 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003097/13.25, allocations: 67.41 kB / 3.921 GB, free: 36.28 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01858/13.27, allocations: 3.96 MB / 3.924 GB, free: 34.51 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/13.27, allocations: 10.66 kB / 3.924 GB, free: 34.51 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009084/13.28, allocations: 0.8769 MB / 3.925 GB, free: 34.37 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00836/13.29, allocations: 2.094 MB / 3.927 GB, free: 33.92 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002425/13.29, allocations: 96.22 kB / 3.927 GB, free: 33.92 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009066/13.29, allocations: 122.7 kB / 3.928 GB, free: 33.91 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007232/13.29, allocations: 2.619 MB / 3.93 GB, free: 33.9 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007911/13.3, allocations: 2.838 MB / 3.933 GB, free: 33.36 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.552e-05/13.3, allocations: 8.625 kB / 3.933 GB, free: 33.36 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003611/13.3, allocations: 6.75 kB / 3.933 GB, free: 33.36 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003128/13.3, allocations: 170.6 kB / 3.933 GB, free: 33.35 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.3981/13.7, allocations: 109.6 MB / 4.04 GB, free: 23.67 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004682/13.71, allocations: 2.098 MB / 4.042 GB, free: 23.08 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00246/13.71, allocations: 1.052 MB / 4.043 GB, free: 23.07 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06211/13.77, allocations: 17.34 MB / 4.06 GB, free: 6.699 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004577/13.77, allocations: 1.215 MB / 4.061 GB, free: 6.031 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=163): time 9.338e-06/13.78, allocations: 0 / 4.061 GB, free: 6.031 MB / 0.5573 GB Notification: Performance of matching and sorting (n=179): time 0.5468/14.32, allocations: 9.428 MB / 4.07 GB, free: 82.97 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001549/14.32, allocations: 362.7 kB / 4.071 GB, free: 82.57 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003204/14.33, allocations: 1.086 MB / 4.072 GB, free: 82.42 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006542/14.33, allocations: 29.75 kB / 4.072 GB, free: 82.39 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001354/14.33, allocations: 0.9822 MB / 4.073 GB, free: 82.23 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001159/14.33, allocations: 0.5779 MB / 4.073 GB, free: 81.94 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002607/14.33, allocations: 4.031 kB / 4.073 GB, free: 81.94 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001945/14.33, allocations: 394.5 kB / 4.074 GB, free: 81.62 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002784/14.33, allocations: 0.9972 MB / 4.075 GB, free: 81.62 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003603/14.34, allocations: 1.484 MB / 4.076 GB, free: 81.12 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01507/14.35, allocations: 1.954 MB / 4.078 GB, free: 81.11 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.372e-05/14.35, allocations: 3.562 kB / 4.078 GB, free: 81.11 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.02014/14.37, allocations: 3.511 MB / 4.082 GB, free: 80.95 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001161/14.37, allocations: 4.859 MB / 4.086 GB, free: 75.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-05/14.37, allocations: 14.97 kB / 4.086 GB, free: 75.91 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/14.37, allocations: 220.8 kB / 4.087 GB, free: 75.88 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004568/14.38, allocations: 0.5286 MB / 4.087 GB, free: 75.88 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001976/14.38, allocations: 2.455 MB / 4.089 GB, free: 73.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005143/14.38, allocations: 303.8 kB / 4.09 GB, free: 73.79 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008983/14.39, allocations: 112.7 kB / 4.09 GB, free: 73.79 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/14.39, allocations: 6.453 kB / 4.09 GB, free: 73.79 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01892/14.4, allocations: 3.161 MB / 4.093 GB, free: 73.71 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.064e-05/14.41, allocations: 14.28 kB / 4.093 GB, free: 73.71 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008522/14.41, allocations: 222.7 kB / 4.093 GB, free: 73.68 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004361/14.41, allocations: 0.5166 MB / 4.094 GB, free: 73.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001911/14.41, allocations: 2.459 MB / 4.096 GB, free: 71.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004151/14.42, allocations: 280.2 kB / 4.096 GB, free: 71.59 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007824/14.42, allocations: 106.9 kB / 4.096 GB, free: 71.59 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 30 (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,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 (254): * Single equations (assignments): 248 * 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: 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001013/14.42, allocations: 242.8 kB / 4.097 GB, free: 71.42 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01847/14.44, allocations: 3.043 MB / 4.1 GB, free: 71.22 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001007/14.44, allocations: 199.1 kB / 4.1 GB, free: 71.12 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02687/14.46, allocations: 6.948 MB / 4.107 GB, free: 70.66 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001019/14.46, allocations: 80.05 kB / 4.107 GB, free: 70.65 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/14.46, allocations: 0 / 4.107 GB, free: 70.65 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02339/14.49, allocations: 6.038 MB / 4.113 GB, free: 69.91 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03758/14.53, allocations: 11.06 MB / 4.123 GB, free: 68.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.485e-05/14.53, allocations: 3.969 kB / 4.123 GB, free: 68.59 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003313/14.53, allocations: 396.2 kB / 4.124 GB, free: 68.59 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001518/14.53, allocations: 320.2 kB / 4.124 GB, free: 68.55 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006191/14.53, allocations: 48.83 kB / 4.124 GB, free: 68.55 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002031/14.53, allocations: 2.638 MB / 4.127 GB, free: 66.46 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.557e-05/14.53, allocations: 10.34 kB / 4.127 GB, free: 66.46 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02608/14.56, allocations: 7.513 MB / 4.134 GB, free: 65.22 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00241/14.56, allocations: 0.6978 MB / 4.135 GB, free: 64.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008834/14.56, allocations: 24.81 kB / 4.135 GB, free: 64.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00356/14.57, allocations: 173.5 kB / 4.135 GB, free: 64.91 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000727/14.57, allocations: 168.2 kB / 4.135 GB, free: 64.91 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002928/14.57, allocations: 83.39 kB / 4.135 GB, free: 64.91 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002252/14.57, allocations: 0.988 MB / 4.136 GB, free: 64.8 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.21e-07/14.57, allocations: 0 / 4.136 GB, free: 64.8 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01442/14.58, allocations: 2.602 MB / 4.139 GB, free: 64.69 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 8 (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) * Number of discrete variables: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.region3boundary,$cse29.region3boundary,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.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) * 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 (196): * Single equations (assignments): 171 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.04152/14.63, allocations: 12.64 MB / 4.151 GB, free: 61.07 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01154/14.64, allocations: 4.718 MB / 4.156 GB, free: 60.77 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-05/14.64, allocations: 3.438 kB / 4.156 GB, free: 60.77 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005563/14.64, allocations: 2.379 MB / 4.158 GB, free: 60.64 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007982/14.65, allocations: 0.8387 MB / 4.159 GB, free: 60.62 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02202/14.67, allocations: 6.902 MB / 4.166 GB, free: 59.18 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002505/14.68, allocations: 2.157 MB / 4.168 GB, free: 58.44 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003044/14.68, allocations: 1.276 MB / 4.169 GB, free: 58.43 MB / 0.5573 GB Notification: Performance of SimCode: time 1.773e-06/14.68, allocations: 2.844 kB / 4.169 GB, free: 58.43 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.677/20.36, allocations: 126.5 MB / 4.292 GB, free: 80.86 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat