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.DynamicPipeInitialization.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.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.39/2.39, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007135/0.0007137, allocations: 15.98 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3849/0.3857, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.036/8.422, allocations: 2.664 GB / 3.025 GB, free: 25.79 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002975/8.422, allocations: 87.45 kB / 3.025 GB, free: 25.74 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.841/11.26, allocations: 0.49 GB / 3.515 GB, free: 53.44 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.926e-06/11.26, allocations: 0 / 3.515 GB, free: 53.44 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002011/11.26, allocations: 44.02 kB / 3.515 GB, free: 53.43 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01758/11.28, allocations: 3.188 MB / 3.518 GB, free: 52.09 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/11.28, allocations: 14.62 kB / 3.518 GB, free: 52.08 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00156/11.28, allocations: 280.9 kB / 3.518 GB, free: 52.04 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007998/11.29, allocations: 0.7152 MB / 3.519 GB, free: 51.93 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006655/11.3, allocations: 1.591 MB / 3.52 GB, free: 51.55 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003149/11.3, allocations: 167.9 kB / 3.52 GB, free: 51.55 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001004/11.3, allocations: 175.7 kB / 3.521 GB, free: 51.55 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01207/11.31, allocations: 3.583 MB / 3.524 GB, free: 50.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.223e-05/11.31, allocations: 6.781 kB / 3.524 GB, free: 50.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004064/11.31, allocations: 75.84 kB / 3.524 GB, free: 50.25 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002396/11.31, allocations: 176.8 kB / 3.524 GB, free: 50.23 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0134/11.33, allocations: 3.515 MB / 3.528 GB, free: 49.22 MB / 490.7 MB 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.02787/11.35, allocations: 14.13 MB / 3.542 GB, free: 39.25 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008528/11.36, allocations: 2.274 MB / 3.544 GB, free: 38.48 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1985/11.56, allocations: 63.42 MB / 3.606 GB, free: 4.133 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007318/11.57, allocations: 1.73 MB / 3.607 GB, free: 2.809 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=154): time 5.471e-06/11.57, allocations: 4 kB / 3.607 GB, free: 2.805 MB / 0.4948 GB Notification: Performance of matching and sorting (n=174): time 0.04083/11.61, allocations: 9.517 MB / 3.617 GB, free: 10.73 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002138/11.61, allocations: 285 kB / 3.617 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002847/11.61, allocations: 1.191 MB / 3.618 GB, free: 9.363 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006389/11.61, allocations: 61.7 kB / 3.618 GB, free: 9.297 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009729/11.61, allocations: 0.8111 MB / 3.619 GB, free: 8.539 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001128/11.61, allocations: 0.5954 MB / 3.62 GB, free: 8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000278/11.61, allocations: 48.12 kB / 3.62 GB, free: 7.953 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002332/11.61, allocations: 393.1 kB / 3.62 GB, free: 7.586 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004495/11.62, allocations: 1.283 MB / 3.621 GB, free: 6.523 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005489/11.62, allocations: 1.829 MB / 3.623 GB, free: 4.711 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005298/11.63, allocations: 1.51 MB / 3.625 GB, free: 3.395 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.378e-05/11.63, allocations: 4 kB / 3.625 GB, free: 3.391 MB / 0.5105 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.4338/12.06, allocations: 4.332 MB / 3.629 GB, free: 83.45 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002308/12.07, allocations: 6.279 MB / 3.635 GB, free: 76.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001177/12.07, allocations: 15.59 kB / 3.635 GB, free: 76.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03581/12.1, allocations: 3.648 MB / 3.639 GB, free: 76.89 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002531/12.11, allocations: 331.7 kB / 3.639 GB, free: 76.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0122/12.12, allocations: 4.057 MB / 3.643 GB, free: 76.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004475/12.12, allocations: 269.4 kB / 3.643 GB, free: 76.34 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007457/12.12, allocations: 109.5 kB / 3.643 GB, free: 76.34 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/12.12, allocations: 6.438 kB / 3.643 GB, free: 76.34 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01389/12.14, allocations: 3.94 MB / 3.647 GB, free: 76.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.803e-05/12.14, allocations: 16.91 kB / 3.647 GB, free: 76.29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0159/12.15, allocations: 2.355 MB / 3.649 GB, free: 76.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002731/12.16, allocations: 365.7 kB / 3.65 GB, free: 76.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008771/12.16, allocations: 3.335 MB / 3.653 GB, free: 75.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003614/12.17, allocations: 270.2 kB / 3.653 GB, free: 75.71 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006075/12.17, allocations: 102.8 kB / 3.653 GB, free: 75.71 MB / 0.5105 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.002245/12.17, allocations: 0.6989 MB / 3.654 GB, free: 75.52 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006211/12.17, allocations: 166.3 kB / 3.654 GB, free: 75.52 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01674/12.19, allocations: 6.858 MB / 3.661 GB, free: 75.17 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.847e-05/12.19, allocations: 68.84 kB / 3.661 GB, free: 75.17 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.57e-05/12.19, allocations: 2.969 kB / 3.661 GB, free: 75.17 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01251/12.2, allocations: 5.511 MB / 3.666 GB, free: 74.47 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02228/12.22, allocations: 9.56 MB / 3.676 GB, free: 73.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.42e-05/12.22, allocations: 3.281 kB / 3.676 GB, free: 73.96 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003741/12.23, allocations: 440 kB / 3.676 GB, free: 73.96 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002919/12.23, allocations: 480.2 kB / 3.676 GB, free: 73.91 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006377/12.23, allocations: 67.2 kB / 3.677 GB, free: 73.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002281/12.23, allocations: 3.212 MB / 3.68 GB, free: 71.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/12.23, allocations: 2.344 kB / 3.68 GB, free: 71.31 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01741/12.25, allocations: 7.129 MB / 3.687 GB, free: 70.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002592/12.25, allocations: 0.7722 MB / 3.687 GB, free: 70.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009107/12.25, allocations: 54.22 kB / 3.687 GB, free: 70.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003767/12.26, allocations: 213.8 kB / 3.688 GB, free: 70.45 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009403/12.26, allocations: 189.4 kB / 3.688 GB, free: 70.44 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000292/12.26, allocations: 65.52 kB / 3.688 GB, free: 70.44 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003053/12.26, allocations: 1.239 MB / 3.689 GB, free: 70.33 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.52e-07/12.26, allocations: 0 / 3.689 GB, free: 70.33 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0128/12.28, allocations: 2.367 MB / 3.691 GB, free: 70.33 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03133/12.31, allocations: 9.92 MB / 3.701 GB, free: 68.11 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01867/12.33, allocations: 5.492 MB / 3.706 GB, free: 66.42 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/12.33, allocations: 0.9375 kB / 3.706 GB, free: 66.42 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006482/12.33, allocations: 2.368 MB / 3.709 GB, free: 65.52 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007751/12.34, allocations: 0.7885 MB / 3.71 GB, free: 65.36 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03086/12.37, allocations: 21.27 MB / 3.73 GB, free: 48.91 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002591/12.37, allocations: 2.04 MB / 3.732 GB, free: 48.06 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002812/12.38, allocations: 1.162 MB / 3.733 GB, free: 47.13 MB / 0.5105 GB Notification: Performance of SimCode: time 1.352e-06/12.38, allocations: 0 / 3.733 GB, free: 47.13 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.241/17.62, allocations: 97.44 MB / 3.829 GB, free: 81.21 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat