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.BranchingPipes15.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.BranchingPipes15,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.37/2.37, allocations: 235.1 MB / 243 MB, free: 15.69 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.498e-05/2.511e-05, allocations: 4 kB / 303.3 MB, free: 3.344 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3665/0.3665, allocations: 54.86 MB / 358.1 MB, free: 15.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.913/2.28, allocations: 0.687 GB / 1.037 GB, free: 2.988 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/2.28, allocations: 76.28 kB / 1.037 GB, free: 2.953 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.203/5.482, allocations: 0.5441 GB / 1.581 GB, free: 22.73 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.144e-06/5.482, allocations: 0 / 1.581 GB, free: 22.73 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002936/5.483, allocations: 55.98 kB / 1.581 GB, free: 22.67 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01292/5.496, allocations: 3.02 MB / 1.584 GB, free: 19.59 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/5.496, allocations: 12.03 kB / 1.584 GB, free: 19.57 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004759/5.501, allocations: 440.8 kB / 1.584 GB, free: 19.14 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008002/5.509, allocations: 1.941 MB / 1.586 GB, free: 17.14 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/5.509, allocations: 52 kB / 1.586 GB, free: 17.09 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006874/5.509, allocations: 96 kB / 1.586 GB, free: 17 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005695/5.515, allocations: 2.115 MB / 1.588 GB, free: 14.88 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006685/5.522, allocations: 2.352 MB / 1.591 GB, free: 12.38 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.57e-05/5.522, allocations: 4 kB / 1.591 GB, free: 12.38 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003799/5.522, allocations: 11.94 kB / 1.591 GB, free: 12.36 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000294/5.523, allocations: 150.9 kB / 1.591 GB, free: 12.21 MB / 490.7 MB 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.02285/5.546, allocations: 10.73 MB / 1.601 GB, free: 0.707 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004541/5.55, allocations: 1.706 MB / 1.603 GB, free: 14.94 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002512/5.553, allocations: 0.9568 MB / 1.604 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001511/5.554, allocations: 461.1 kB / 1.604 GB, free: 13.47 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002799/5.557, allocations: 1.039 MB / 1.605 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=153): time 9.508e-06/5.557, allocations: 0 / 1.605 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=176): time 0.06783/5.625, allocations: 9.336 MB / 1.614 GB, free: 3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/5.625, allocations: 256.6 kB / 1.615 GB, free: 2.691 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002414/5.628, allocations: 1.076 MB / 1.616 GB, free: 1.609 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006024/5.628, allocations: 29.7 kB / 1.616 GB, free: 1.574 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00101/5.629, allocations: 0.8722 MB / 1.617 GB, free: 0.6914 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009887/5.63, allocations: 0.5697 MB / 1.617 GB, free: 116 kB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002307/5.631, allocations: 4 kB / 1.617 GB, free: 112 kB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.4148/6.045, allocations: 387.6 kB / 1.618 GB, free: 51.69 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005761/6.051, allocations: 0.9622 MB / 1.619 GB, free: 51.68 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005034/6.056, allocations: 1.405 MB / 1.62 GB, free: 51.25 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02295/6.079, allocations: 2.306 MB / 1.622 GB, free: 51.24 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.613e-05/6.079, allocations: 2.781 kB / 1.622 GB, free: 51.24 MB / 0.4948 GB Notification: Performance of matching and sorting (n=266) (initialization): time 0.02872/6.108, allocations: 3.821 MB / 1.626 GB, free: 51.13 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001162/6.109, allocations: 4.16 MB / 1.63 GB, free: 46.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.215e-05/6.109, allocations: 12.75 kB / 1.63 GB, free: 46.82 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007987/6.11, allocations: 174.2 kB / 1.63 GB, free: 46.79 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006195/6.116, allocations: 0.5419 MB / 1.631 GB, free: 46.79 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002135/6.119, allocations: 2.345 MB / 1.633 GB, free: 44.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005359/6.124, allocations: 171.7 kB / 1.633 GB, free: 44.71 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008949/6.125, allocations: 187.3 kB / 1.633 GB, free: 44.71 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/6.125, allocations: 9.75 kB / 1.633 GB, free: 44.71 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0192/6.144, allocations: 3.43 MB / 1.637 GB, free: 44.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.465e-05/6.144, allocations: 11.44 kB / 1.637 GB, free: 44.63 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004943/6.145, allocations: 174.7 kB / 1.637 GB, free: 44.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004511/6.149, allocations: 0.5371 MB / 1.637 GB, free: 44.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001589/6.151, allocations: 2.339 MB / 1.64 GB, free: 42.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003366/6.154, allocations: 168.2 kB / 1.64 GB, free: 42.53 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006405/6.155, allocations: 184.9 kB / 1.64 GB, free: 42.53 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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.0009486/6.156, allocations: 237.5 kB / 1.64 GB, free: 42.36 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01918/6.175, allocations: 3.266 MB / 1.643 GB, free: 42.25 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000942/6.176, allocations: 192.6 kB / 1.644 GB, free: 42.25 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0239/6.2, allocations: 3.891 MB / 1.647 GB, free: 42.1 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.287e-05/6.2, allocations: 17.62 kB / 1.647 GB, free: 42.1 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/6.2, allocations: 0 / 1.647 GB, free: 42.1 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01962/6.22, allocations: 3.383 MB / 1.651 GB, free: 41.58 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03513/6.255, allocations: 6.867 MB / 1.657 GB, free: 40.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.674e-05/6.255, allocations: 11.42 kB / 1.657 GB, free: 40.48 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005093/6.26, allocations: 410.5 kB / 1.658 GB, free: 40.48 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008308/6.261, allocations: 164.2 kB / 1.658 GB, free: 40.45 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006261/6.262, allocations: 71.12 kB / 1.658 GB, free: 40.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002693/6.265, allocations: 3.032 MB / 1.661 GB, free: 37.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.377e-05/6.265, allocations: 10.66 kB / 1.661 GB, free: 37.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03011/6.295, allocations: 5.08 MB / 1.666 GB, free: 36.68 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002237/6.297, allocations: 0.5054 MB / 1.666 GB, free: 36.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006773/6.298, allocations: 23.72 kB / 1.666 GB, free: 36.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003202/6.301, allocations: 91 kB / 1.667 GB, free: 36.48 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008592/6.302, allocations: 159.5 kB / 1.667 GB, free: 36.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007999/6.303, allocations: 150.9 kB / 1.667 GB, free: 36.48 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002787/6.306, allocations: 0.7941 MB / 1.668 GB, free: 36.37 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.623e-06/6.306, allocations: 2.844 kB / 1.668 GB, free: 36.37 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01158/6.317, allocations: 1.794 MB / 1.669 GB, free: 36.37 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,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 (184): * Single equations (assignments): 178 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03377/6.351, allocations: 9.662 MB / 1.679 GB, free: 33.18 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01003/6.361, allocations: 4.062 MB / 1.683 GB, free: 32.89 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.468e-05/6.361, allocations: 2.062 kB / 1.683 GB, free: 32.89 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003259/6.365, allocations: 1.414 MB / 1.684 GB, free: 32.66 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007129/6.372, allocations: 0.7833 MB / 1.685 GB, free: 32.64 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02829/6.4, allocations: 6.339 MB / 1.691 GB, free: 31.63 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001516/6.402, allocations: 1.698 MB / 1.693 GB, free: 30.89 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003377/6.405, allocations: 1.016 MB / 1.694 GB, free: 30.88 MB / 0.4948 GB Notification: Performance of SimCode: time 1.163e-06/6.405, allocations: 3.281 kB / 1.694 GB, free: 30.88 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.62/11.03, allocations: 91.48 MB / 1.783 GB, free: 12.3 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat does not exist to compare? outputFormat=mat