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.348/2.348, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004495/0.0004497, allocations: 12 kB / 314.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4003/0.4007, allocations: 54.87 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.287/8.688, allocations: 2.66 GB / 3.021 GB, free: 29.24 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/8.688, allocations: 75.78 kB / 3.021 GB, free: 29.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.061/13.75, allocations: 0.9011 GB / 3.922 GB, free: 33.23 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.434e-06/13.75, allocations: 0 / 3.922 GB, free: 33.23 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003426/13.75, allocations: 67.56 kB / 3.922 GB, free: 33.21 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.02034/13.77, allocations: 4.314 MB / 3.926 GB, free: 31.25 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/13.77, allocations: 11.5 kB / 3.926 GB, free: 31.25 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001643/13.77, allocations: 302 kB / 3.927 GB, free: 31.2 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009265/13.78, allocations: 0.8686 MB / 3.928 GB, free: 31.06 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008882/13.79, allocations: 2.101 MB / 3.93 GB, free: 30.6 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003597/13.79, allocations: 185 kB / 3.93 GB, free: 30.59 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001057/13.79, allocations: 200.9 kB / 3.93 GB, free: 30.59 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01287/13.8, allocations: 3.684 MB / 3.934 GB, free: 30.05 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.823e-05/13.8, allocations: 7.375 kB / 3.934 GB, free: 30.04 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004446/13.8, allocations: 90.53 kB / 3.934 GB, free: 30.04 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003121/13.8, allocations: 168.5 kB / 3.934 GB, free: 30.04 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01336/13.82, allocations: 3.427 MB / 3.937 GB, free: 29.99 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.03055/13.85, allocations: 15.42 MB / 3.952 GB, free: 20.57 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008995/13.86, allocations: 2.263 MB / 3.954 GB, free: 20.53 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05742/13.92, allocations: 18.89 MB / 3.973 GB, free: 24.36 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007255/13.92, allocations: 1.692 MB / 3.975 GB, free: 24.22 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=163): time 7.695e-06/13.92, allocations: 0 / 3.975 GB, free: 24.22 MB / 0.5261 GB Notification: Performance of matching and sorting (n=179): time 0.04025/13.96, allocations: 9.012 MB / 3.983 GB, free: 21.34 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001849/13.96, allocations: 257.5 kB / 3.984 GB, free: 21.05 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003217/13.97, allocations: 1.455 MB / 3.985 GB, free: 20.51 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005929/13.97, allocations: 58.98 kB / 3.985 GB, free: 20.46 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009715/13.97, allocations: 0.9299 MB / 3.986 GB, free: 19.67 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009986/13.97, allocations: 0.6012 MB / 3.987 GB, free: 19.21 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002328/13.97, allocations: 39.16 kB / 3.987 GB, free: 19.18 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000227/13.97, allocations: 399 kB / 3.987 GB, free: 18.83 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003561/13.97, allocations: 1.127 MB / 3.988 GB, free: 18.46 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004054/13.98, allocations: 1.588 MB / 3.99 GB, free: 17.53 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004238/13.98, allocations: 1.376 MB / 3.991 GB, free: 16.95 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.53e-05/13.98, allocations: 7.906 kB / 3.991 GB, free: 16.94 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.0102/13.99, allocations: 3.168 MB / 3.994 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001992/13.99, allocations: 4.862 MB / 3.999 GB, free: 10.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.772e-05/13.99, allocations: 15.75 kB / 3.999 GB, free: 10.46 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001549/14, allocations: 259.3 kB / 3.999 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004267/14, allocations: 0.5119 MB / 4 GB, free: 9.812 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0023/14, allocations: 2.433 MB / 4.002 GB, free: 7.359 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004461/14.01, allocations: 270.2 kB / 4.002 GB, free: 7.152 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007662/14.01, allocations: 105 kB / 4.002 GB, free: 7.059 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/14.01, allocations: 10.12 kB / 4.002 GB, free: 7.051 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01073/14.02, allocations: 3.017 MB / 4.005 GB, free: 4.398 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.404e-05/14.02, allocations: 12 kB / 4.005 GB, free: 4.387 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001448/14.02, allocations: 256.2 kB / 4.005 GB, free: 4.176 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004466/14.02, allocations: 0.508 MB / 4.006 GB, free: 3.742 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002464/14.03, allocations: 2.433 MB / 4.008 GB, free: 1.293 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003603/14.03, allocations: 267.3 kB / 4.009 GB, free: 1.086 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000522/14.03, allocations: 105.1 kB / 4.009 GB, free: 0.9922 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 () * Number of clocked 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.002748/14.03, allocations: 0.7558 MB / 4.009 GB, free: 288 kB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008275/14.03, allocations: 213.3 kB / 4.01 GB, free: 76 kB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02097/14.06, allocations: 7.673 MB / 4.017 GB, free: 9.414 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001224/14.06, allocations: 83.73 kB / 4.017 GB, free: 9.363 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.275e-05/14.06, allocations: 0 / 4.017 GB, free: 9.363 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01603/14.07, allocations: 6.644 MB / 4.024 GB, free: 3.207 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4786/14.55, allocations: 10.85 MB / 4.034 GB, free: 62.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.231e-05/14.55, allocations: 0 / 4.034 GB, free: 62.87 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003338/14.55, allocations: 411.4 kB / 4.035 GB, free: 62.87 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002332/14.56, allocations: 365.5 kB / 4.035 GB, free: 62.84 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006547/14.56, allocations: 62.08 kB / 4.035 GB, free: 62.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001883/14.56, allocations: 2.522 MB / 4.038 GB, free: 60.78 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/14.56, allocations: 1.344 kB / 4.038 GB, free: 60.78 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01793/14.58, allocations: 7.139 MB / 4.045 GB, free: 60.31 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002499/14.58, allocations: 0.7498 MB / 4.045 GB, free: 60.22 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009715/14.58, allocations: 50.09 kB / 4.045 GB, free: 60.22 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003553/14.58, allocations: 214.6 kB / 4.046 GB, free: 60.22 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006636/14.58, allocations: 150.8 kB / 4.046 GB, free: 60.22 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002882/14.59, allocations: 69.66 kB / 4.046 GB, free: 60.22 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003269/14.59, allocations: 1.216 MB / 4.047 GB, free: 60.07 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.41e-07/14.59, allocations: 0 / 4.047 GB, free: 60.07 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01433/14.6, allocations: 2.848 MB / 4.05 GB, free: 60.07 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) * Number of clocked states: 0 () * 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.03457/14.64, allocations: 10.53 MB / 4.06 GB, free: 58.87 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01534/14.65, allocations: 5.318 MB / 4.065 GB, free: 58.53 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/14.65, allocations: 0 / 4.065 GB, free: 58.53 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005886/14.66, allocations: 2.477 MB / 4.068 GB, free: 58.39 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008511/14.67, allocations: 0.9677 MB / 4.069 GB, free: 58.37 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3765/15.04, allocations: 141.3 MB / 4.207 GB, free: 18.63 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002407/15.05, allocations: 2.236 MB / 4.209 GB, free: 16.97 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002998/15.05, allocations: 1.337 MB / 4.21 GB, free: 16.79 MB / 0.5417 GB Notification: Performance of SimCode: time 1.102e-06/15.05, allocations: 0 / 4.21 GB, free: 16.79 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.742/20.79, allocations: 129.3 MB / 4.336 GB, free: 46.36 MB / 0.5417 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