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.BranchingPipes4.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.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.272/2.272, allocations: 235 MB / 248 MB, free: 14.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.937e-05/3.949e-05, allocations: 4 kB / 309.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4111/0.4112, allocations: 54.85 MB / 364.6 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.071/8.482, allocations: 2.66 GB / 3.016 GB, free: 98.45 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002768/8.482, allocations: 79.67 kB / 3.016 GB, free: 98.41 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.028/13.51, allocations: 0.8987 GB / 3.915 GB, free: 30.99 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.655e-06/13.51, allocations: 0 / 3.915 GB, free: 30.99 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003636/13.51, allocations: 67.36 kB / 3.915 GB, free: 30.98 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.01879/13.53, allocations: 4.038 MB / 3.919 GB, free: 29.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/13.53, allocations: 10.97 kB / 3.919 GB, free: 29.2 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00134/13.53, allocations: 294.9 kB / 3.919 GB, free: 29.15 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009314/13.54, allocations: 0.8694 MB / 3.92 GB, free: 29.02 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008885/13.55, allocations: 2.082 MB / 3.922 GB, free: 28.56 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003467/13.55, allocations: 179.6 kB / 3.922 GB, free: 28.56 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001096/13.55, allocations: 202.1 kB / 3.923 GB, free: 28.56 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01216/13.56, allocations: 3.656 MB / 3.926 GB, free: 28.04 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.982e-05/13.56, allocations: 5.031 kB / 3.926 GB, free: 28.04 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004509/13.56, allocations: 92.33 kB / 3.926 GB, free: 28.04 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003157/13.56, allocations: 171.2 kB / 3.926 GB, free: 28.04 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01147/13.58, allocations: 3.288 MB / 3.93 GB, free: 28.02 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.03126/13.61, allocations: 15.42 MB / 3.945 GB, free: 18.7 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007637/13.61, allocations: 2.17 MB / 3.947 GB, free: 18.66 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002657/13.62, allocations: 1.029 MB / 3.948 GB, free: 18.66 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05973/13.68, allocations: 18.94 MB / 3.966 GB, free: 22.82 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006531/13.68, allocations: 1.688 MB / 3.968 GB, free: 22.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=163): time 6.883e-06/13.68, allocations: 0 / 3.968 GB, free: 22.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=179): time 0.03292/13.72, allocations: 7.497 MB / 3.975 GB, free: 21.64 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000178/13.72, allocations: 263 kB / 3.975 GB, free: 21.36 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003361/13.72, allocations: 1.442 MB / 3.977 GB, free: 21.17 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006187/13.72, allocations: 54.45 kB / 3.977 GB, free: 21.14 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00115/13.72, allocations: 0.9292 MB / 3.978 GB, free: 20.67 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001168/13.72, allocations: 0.5974 MB / 3.978 GB, free: 20.29 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000289/13.72, allocations: 41.72 kB / 3.978 GB, free: 20.29 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002624/13.72, allocations: 395.1 kB / 3.979 GB, free: 19.98 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002925/13.73, allocations: 1.014 MB / 3.98 GB, free: 19.97 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003467/13.73, allocations: 1.471 MB / 3.981 GB, free: 19.48 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003652/13.73, allocations: 1.263 MB / 3.982 GB, free: 19.39 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-05/13.73, allocations: 6.125 kB / 3.982 GB, free: 19.39 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.009521/13.74, allocations: 2.936 MB / 3.985 GB, free: 19.17 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002125/13.75, allocations: 4.855 MB / 3.99 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.735e-05/13.75, allocations: 13.19 kB / 3.99 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001463/13.75, allocations: 230.6 kB / 3.99 GB, free: 14.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004525/13.75, allocations: 0.5213 MB / 3.991 GB, free: 14.09 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002325/13.75, allocations: 2.431 MB / 3.993 GB, free: 12.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004535/13.76, allocations: 274.6 kB / 3.993 GB, free: 12 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007438/13.76, allocations: 106.6 kB / 3.994 GB, free: 12 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/13.76, allocations: 3.406 kB / 3.994 GB, free: 12 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008536/13.77, allocations: 2.779 MB / 3.996 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.76e-05/13.77, allocations: 12.06 kB / 3.996 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001167/13.77, allocations: 242 kB / 3.997 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004315/13.77, allocations: 0.5085 MB / 3.997 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002215/13.78, allocations: 2.427 MB / 3.999 GB, free: 9.758 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003573/13.78, allocations: 275.1 kB / 4 GB, free: 9.738 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006201/13.78, allocations: 99.69 kB / 4 GB, free: 9.738 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 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * 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.001016/13.78, allocations: 311.6 kB / 4 GB, free: 9.555 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007076/13.78, allocations: 205.3 kB / 4 GB, free: 9.453 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01553/13.8, allocations: 7.525 MB / 4.008 GB, free: 8.684 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.931e-05/13.8, allocations: 84.58 kB / 4.008 GB, free: 8.684 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/13.8, allocations: 7.125 kB / 4.008 GB, free: 8.684 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01321/13.81, allocations: 6.553 MB / 4.014 GB, free: 7.746 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02327/13.83, allocations: 10.73 MB / 4.025 GB, free: 6.961 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-05/13.83, allocations: 0 / 4.025 GB, free: 6.961 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003567/13.84, allocations: 412.5 kB / 4.025 GB, free: 6.945 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001989/13.84, allocations: 333.3 kB / 4.025 GB, free: 6.844 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005888/13.84, allocations: 64.12 kB / 4.025 GB, free: 6.812 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002352/13.84, allocations: 2.524 MB / 4.028 GB, free: 20.54 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/13.84, allocations: 3 kB / 4.028 GB, free: 20.54 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0142/13.86, allocations: 6.794 MB / 4.034 GB, free: 17.51 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002526/13.86, allocations: 0.7515 MB / 4.035 GB, free: 17.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008394/13.86, allocations: 54.62 kB / 4.035 GB, free: 17.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003449/13.86, allocations: 206.5 kB / 4.035 GB, free: 16.98 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006021/13.87, allocations: 152.4 kB / 4.036 GB, free: 16.96 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002712/13.87, allocations: 71.03 kB / 4.036 GB, free: 16.95 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002681/13.87, allocations: 1.196 MB / 4.037 GB, free: 16.46 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.32e-07/13.87, allocations: 0 / 4.037 GB, free: 16.46 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01325/13.88, allocations: 2.851 MB / 4.04 GB, free: 15.86 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,splitter.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 (200): * Single equations (assignments): 171 * 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.03046/13.91, allocations: 10.18 MB / 4.05 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01465/13.93, allocations: 4.993 MB / 4.054 GB, free: 7.355 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/13.93, allocations: 0 / 4.054 GB, free: 7.355 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006061/13.93, allocations: 2.386 MB / 4.057 GB, free: 5.152 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008959/13.94, allocations: 0.9782 MB / 4.058 GB, free: 4.445 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.011/14.95, allocations: 129.9 MB / 4.185 GB, free: 64.08 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00238/14.96, allocations: 2.232 MB / 4.187 GB, free: 63.3 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002982/14.96, allocations: 1.342 MB / 4.188 GB, free: 63.29 MB / 0.5573 GB Notification: Performance of SimCode: time 1.002e-06/14.96, allocations: 2.516 kB / 4.188 GB, free: 63.29 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.034/20.99, allocations: 132 MB / 4.317 GB, free: 67.67 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat