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.BranchingPipes3.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.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.588/2.588, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.279e-05/2.303e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3539/0.354, allocations: 54.85 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.894/8.248, allocations: 2.673 GB / 3.022 GB, free: 77.49 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003003/8.248, allocations: 76.83 kB / 3.022 GB, free: 77.45 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.886/13.13, allocations: 0.8605 GB / 3.883 GB, free: 37.74 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.964e-06/13.13, allocations: 2.375 kB / 3.883 GB, free: 37.74 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003195/13.13, allocations: 64.44 kB / 3.883 GB, free: 37.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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01789/13.15, allocations: 3.743 MB / 3.887 GB, free: 36.14 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/13.15, allocations: 13.81 kB / 3.887 GB, free: 36.14 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01032/13.16, allocations: 0.784 MB / 3.887 GB, free: 36.01 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01083/13.17, allocations: 1.978 MB / 3.889 GB, free: 35.57 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003503/13.17, allocations: 86.17 kB / 3.889 GB, free: 35.57 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00109/13.18, allocations: 109.8 kB / 3.89 GB, free: 35.57 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009303/13.19, allocations: 2.29 MB / 3.892 GB, free: 35.56 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01039/13.2, allocations: 2.536 MB / 3.894 GB, free: 35.09 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001031/13.2, allocations: 5.781 kB / 3.894 GB, free: 35.09 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004648/13.2, allocations: 6.656 kB / 3.894 GB, free: 35.09 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004122/13.2, allocations: 150.5 kB / 3.894 GB, free: 35.08 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.425/13.62, allocations: 108.1 MB / 4 GB, free: 26.82 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00386/13.63, allocations: 1.426 MB / 4.001 GB, free: 26.78 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002394/13.63, allocations: 0.9507 MB / 4.002 GB, free: 26.77 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06198/13.69, allocations: 17.47 MB / 4.019 GB, free: 15.21 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002891/13.69, allocations: 1.144 MB / 4.02 GB, free: 15.04 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001734/13.69, allocations: 145.2 kB / 4.021 GB, free: 14.98 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=145): time 9.598e-06/13.69, allocations: 0 / 4.021 GB, free: 14.98 MB / 0.5573 GB Notification: Performance of matching and sorting (n=157): time 0.06331/13.76, allocations: 8.748 MB / 4.029 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002548/13.76, allocations: 361.9 kB / 4.029 GB, free: 12.93 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002222/13.76, allocations: 1.022 MB / 4.03 GB, free: 12.75 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006149/13.76, allocations: 29.58 kB / 4.03 GB, free: 12.72 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001033/13.76, allocations: 0.9011 MB / 4.031 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009674/13.76, allocations: 0.5015 MB / 4.032 GB, free: 11.91 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002179/13.76, allocations: 3.844 kB / 4.032 GB, free: 11.91 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000244/13.76, allocations: 385.1 kB / 4.032 GB, free: 11.59 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002337/13.77, allocations: 0.8993 MB / 4.033 GB, free: 11.59 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00302/13.77, allocations: 1.322 MB / 4.034 GB, free: 11.13 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01418/13.78, allocations: 1.826 MB / 4.036 GB, free: 11.09 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.462e-05/13.78, allocations: 7.781 kB / 4.036 GB, free: 11.08 MB / 0.5573 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.01953/13.8, allocations: 3.36 MB / 4.039 GB, free: 10.91 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002187/13.81, allocations: 4.255 MB / 4.044 GB, free: 22.45 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.712e-05/13.81, allocations: 10.44 kB / 4.044 GB, free: 22.45 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003826/13.81, allocations: 497.5 kB / 4.044 GB, free: 22.41 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003804/13.81, allocations: 451.7 kB / 4.045 GB, free: 22.41 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003592/13.82, allocations: 2.821 MB / 4.047 GB, free: 20.32 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004558/13.82, allocations: 261.3 kB / 4.048 GB, free: 20.28 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007536/13.82, allocations: 96.52 kB / 4.048 GB, free: 20.28 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/13.82, allocations: 7.25 kB / 4.048 GB, free: 20.28 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01744/13.84, allocations: 2.934 MB / 4.051 GB, free: 19.43 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.221e-05/13.84, allocations: 8 kB / 4.051 GB, free: 19.42 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006867/13.84, allocations: 190.3 kB / 4.051 GB, free: 19.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003873/13.84, allocations: 467 kB / 4.051 GB, free: 18.96 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001869/13.85, allocations: 1.895 MB / 4.053 GB, free: 17.21 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003612/13.85, allocations: 239.7 kB / 4.053 GB, free: 17.03 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006501/13.85, allocations: 102.2 kB / 4.053 GB, free: 16.96 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008983/13.85, allocations: 235.7 kB / 4.054 GB, free: 16.75 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01718/13.87, allocations: 2.87 MB / 4.056 GB, free: 15.05 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008736/13.87, allocations: 184.8 kB / 4.057 GB, free: 14.87 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02325/13.89, allocations: 6.679 MB / 4.063 GB, free: 11.18 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001025/13.89, allocations: 70.41 kB / 4.063 GB, free: 11.16 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/13.89, allocations: 1.438 kB / 4.063 GB, free: 11.16 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02188/13.92, allocations: 5.816 MB / 4.069 GB, free: 7.711 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0342/13.95, allocations: 9.894 MB / 4.078 GB, free: 2.395 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.148e-05/13.95, allocations: 12.05 kB / 4.078 GB, free: 2.383 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002707/13.95, allocations: 310.4 kB / 4.079 GB, free: 2.152 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003775/13.96, allocations: 1.235 MB / 4.08 GB, free: 1.293 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004957/13.96, allocations: 47.56 kB / 4.08 GB, free: 1.27 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4338/14.39, allocations: 3.386 MB / 4.083 GB, free: 96.35 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.177e-05/14.39, allocations: 8.969 kB / 4.083 GB, free: 96.35 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02444/14.41, allocations: 7.071 MB / 4.09 GB, free: 95.43 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002335/14.42, allocations: 0.6521 MB / 4.091 GB, free: 95.34 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008413/14.42, allocations: 24.64 kB / 4.091 GB, free: 95.34 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003148/14.42, allocations: 146 kB / 4.091 GB, free: 95.34 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005593/14.42, allocations: 141.6 kB / 4.091 GB, free: 95.33 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002395/14.42, allocations: 75.83 kB / 4.091 GB, free: 95.33 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002115/14.42, allocations: 0.948 MB / 4.092 GB, free: 95.22 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.102e-06/14.42, allocations: 1.719 kB / 4.092 GB, free: 95.22 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01324/14.44, allocations: 2.469 MB / 4.095 GB, free: 95.22 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.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) * 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 (161): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.03667/14.47, allocations: 11.62 MB / 4.106 GB, free: 92.2 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.009993/14.48, allocations: 4.267 MB / 4.11 GB, free: 91.9 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.432e-05/14.48, allocations: 3.188 kB / 4.11 GB, free: 91.9 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004698/14.49, allocations: 2.129 MB / 4.112 GB, free: 91.76 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007616/14.5, allocations: 0.7832 MB / 4.113 GB, free: 91.74 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02028/14.52, allocations: 6.335 MB / 4.119 GB, free: 90.47 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00207/14.52, allocations: 2.05 MB / 4.121 GB, free: 89.73 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002533/14.52, allocations: 1.145 MB / 4.122 GB, free: 89.72 MB / 0.573 GB Notification: Performance of SimCode: time 1.723e-06/14.52, allocations: 4.875 kB / 4.122 GB, free: 89.72 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.958/19.48, allocations: 118.6 MB / 4.238 GB, free: 67.08 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat