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/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.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.578/2.578, allocations: 235 MB / 248.1 MB, free: 14.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.596e-05/3.633e-05, allocations: 8 kB / 309.8 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4272/0.4273, allocations: 54.85 MB / 364.6 MB, free: 5.551 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.174/8.602, allocations: 2.677 GB / 3.033 GB, free: 80.76 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/8.602, allocations: 78.95 kB / 3.033 GB, free: 80.72 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.979/13.58, allocations: 0.9022 GB / 3.935 GB, free: 33.58 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.434e-06/13.58, allocations: 0.7188 kB / 3.935 GB, free: 33.58 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003762/13.58, allocations: 57.88 kB / 3.935 GB, free: 33.57 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.01944/13.6, allocations: 3.978 MB / 3.939 GB, free: 31.8 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.509e-05/13.6, allocations: 7.688 kB / 3.939 GB, free: 31.8 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001652/13.6, allocations: 298 kB / 3.94 GB, free: 31.75 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009776/13.61, allocations: 0.8802 MB / 3.94 GB, free: 31.61 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009214/13.62, allocations: 2.098 MB / 3.942 GB, free: 31.17 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003749/13.62, allocations: 179.2 kB / 3.943 GB, free: 31.16 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001248/13.62, allocations: 211.6 kB / 3.943 GB, free: 31.16 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01436/13.64, allocations: 3.626 MB / 3.946 GB, free: 30.61 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001054/13.64, allocations: 7.281 kB / 3.946 GB, free: 30.61 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006655/13.64, allocations: 89.7 kB / 3.946 GB, free: 30.61 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003557/13.64, allocations: 166 kB / 3.947 GB, free: 30.61 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01161/13.65, allocations: 3.202 MB / 3.95 GB, free: 30.59 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.03069/13.68, allocations: 15.47 MB / 3.965 GB, free: 21.14 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008083/13.69, allocations: 2.679 MB / 3.967 GB, free: 20.54 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003055/13.69, allocations: 1.136 MB / 3.969 GB, free: 20.53 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09132/13.78, allocations: 18.76 MB / 3.987 GB, free: 24.79 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0106/13.79, allocations: 1.707 MB / 3.989 GB, free: 24.66 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=173): time 9.228e-06/13.79, allocations: 0 / 3.989 GB, free: 24.66 MB / 0.5261 GB Notification: Performance of matching and sorting (n=189): time 0.03853/13.83, allocations: 7.722 MB / 3.996 GB, free: 23.58 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001902/13.83, allocations: 258.1 kB / 3.996 GB, free: 23.29 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003046/13.84, allocations: 1.343 MB / 3.998 GB, free: 23.11 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006883/13.84, allocations: 62.55 kB / 3.998 GB, free: 23.08 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001064/13.84, allocations: 0.9229 MB / 3.999 GB, free: 22.61 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001181/13.84, allocations: 0.6321 MB / 3.999 GB, free: 22.21 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002688/13.84, allocations: 41.81 kB / 3.999 GB, free: 22.21 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003435/13.84, allocations: 393.5 kB / 4 GB, free: 21.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002912/13.84, allocations: 1.019 MB / 4.001 GB, free: 21.89 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004343/13.85, allocations: 1.509 MB / 4.002 GB, free: 21.39 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003647/13.85, allocations: 1.284 MB / 4.003 GB, free: 21.3 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.82e-05/13.85, allocations: 3.281 kB / 4.003 GB, free: 21.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.009329/13.86, allocations: 2.954 MB / 4.006 GB, free: 21.09 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002371/13.86, allocations: 4.862 MB / 4.011 GB, free: 16.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-05/13.86, allocations: 14.23 kB / 4.011 GB, free: 16.03 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001572/13.86, allocations: 238 kB / 4.011 GB, free: 16 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004598/13.87, allocations: 0.5324 MB / 4.012 GB, free: 16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002366/13.87, allocations: 2.427 MB / 4.014 GB, free: 13.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005019/13.88, allocations: 306 kB / 4.014 GB, free: 13.89 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008443/13.88, allocations: 108.2 kB / 4.015 GB, free: 13.89 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/13.88, allocations: 7.797 kB / 4.015 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008908/13.89, allocations: 2.806 MB / 4.017 GB, free: 13.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.44e-05/13.89, allocations: 13.25 kB / 4.017 GB, free: 13.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/13.89, allocations: 240.4 kB / 4.018 GB, free: 13.69 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00446/13.89, allocations: 0.523 MB / 4.018 GB, free: 13.69 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002292/13.89, allocations: 2.431 MB / 4.02 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004005/13.9, allocations: 306.6 kB / 4.021 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007594/13.9, allocations: 99.73 kB / 4.021 GB, free: 11.57 MB / 0.5261 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,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,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.0013/13.9, allocations: 322 kB / 4.021 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007995/13.9, allocations: 206.1 kB / 4.021 GB, free: 11.28 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0159/13.92, allocations: 7.449 MB / 4.029 GB, free: 10.47 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001033/13.92, allocations: 92.11 kB / 4.029 GB, free: 10.47 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/13.92, allocations: 0 / 4.029 GB, free: 10.47 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01276/13.93, allocations: 6.478 MB / 4.035 GB, free: 9.531 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02792/13.96, allocations: 12.07 MB / 4.047 GB, free: 4.078 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-05/13.96, allocations: 6.406 kB / 4.047 GB, free: 4.074 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003497/13.96, allocations: 435.5 kB / 4.047 GB, free: 4.035 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001963/13.96, allocations: 344.2 kB / 4.048 GB, free: 3.926 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000613/13.96, allocations: 73.12 kB / 4.048 GB, free: 3.891 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002231/13.97, allocations: 2.521 MB / 4.05 GB, free: 1.617 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.09e-05/13.97, allocations: 11.28 kB / 4.05 GB, free: 1.613 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0157/13.98, allocations: 7.436 MB / 4.057 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002722/13.99, allocations: 0.7554 MB / 4.058 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001022/13.99, allocations: 58.81 kB / 4.058 GB, free: 13.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003859/13.99, allocations: 220.7 kB / 4.058 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008004/13.99, allocations: 172.6 kB / 4.058 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003579/13.99, allocations: 88.05 kB / 4.059 GB, free: 13.16 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002978/13.99, allocations: 1.124 MB / 4.06 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.152e-06/13.99, allocations: 0 / 4.06 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01487/14.01, allocations: 2.743 MB / 4.062 GB, free: 10.93 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$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,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 (212): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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.03579/14.05, allocations: 12.11 MB / 4.074 GB, free: 15.86 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01666/14.06, allocations: 5.074 MB / 4.079 GB, free: 11.14 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.384e-05/14.06, allocations: 0 / 4.079 GB, free: 11.14 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007796/14.07, allocations: 2.665 MB / 4.082 GB, free: 8.668 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009772/14.08, allocations: 0.9788 MB / 4.083 GB, free: 7.945 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8633/14.94, allocations: 129.8 MB / 4.209 GB, free: 63.69 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002619/14.95, allocations: 2.245 MB / 4.212 GB, free: 62.91 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003218/14.95, allocations: 1.354 MB / 4.213 GB, free: 62.9 MB / 0.5573 GB Notification: Performance of SimCode: time 2.494e-06/14.95, allocations: 2.297 kB / 4.213 GB, free: 62.9 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.928/20.88, allocations: 131.7 MB / 4.341 GB, free: 70.47 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