Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.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.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.302/2.302, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004475/0.0004477, allocations: 12 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3787/0.3791, allocations: 54.85 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.868/8.248, allocations: 2.608 GB / 2.968 GB, free: 88.55 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003457/8.248, allocations: 93.58 kB / 2.969 GB, free: 88.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.273/11.52, allocations: 0.5753 GB / 3.544 GB, free: 46.48 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.246e-06/11.52, allocations: 0 / 3.544 GB, free: 46.48 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002709/11.52, allocations: 40.17 kB / 3.544 GB, free: 46.47 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 284 * Number of variables: 284 Notification: Performance of Generate backend data structure: time 0.02184/11.54, allocations: 2.711 MB / 3.546 GB, free: 45.24 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/11.54, allocations: 10.34 kB / 3.546 GB, free: 45.24 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008067/11.54, allocations: 169.2 kB / 3.547 GB, free: 45.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01013/11.55, allocations: 0.8703 MB / 3.548 GB, free: 45.12 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003695/11.56, allocations: 1.081 MB / 3.549 GB, free: 44.75 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001849/11.56, allocations: 96.61 kB / 3.549 GB, free: 44.74 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005043/11.56, allocations: 121.1 kB / 3.549 GB, free: 44.74 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008795/11.57, allocations: 2.204 MB / 3.551 GB, free: 44.36 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.528e-05/11.57, allocations: 7.531 kB / 3.551 GB, free: 44.36 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002547/11.57, allocations: 50.44 kB / 3.551 GB, free: 44.36 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3e-05/11.57, allocations: 31.38 kB / 3.551 GB, free: 44.36 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00981/11.58, allocations: 2.178 MB / 3.553 GB, free: 44.32 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01792/11.6, allocations: 8.874 MB / 3.562 GB, free: 38.5 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009085/11.61, allocations: 1.944 MB / 3.564 GB, free: 38.04 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1704/11.78, allocations: 49.23 MB / 3.612 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.611e-05/11.78, allocations: 43.5 kB / 3.612 GB, free: 23.91 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001989/11.78, allocations: 155.4 kB / 3.612 GB, free: 23.83 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=106): time 8.356e-06/11.78, allocations: 0 / 3.612 GB, free: 23.83 MB / 0.5105 GB Notification: Performance of matching and sorting (n=106): time 0.04063/11.82, allocations: 3.969 MB / 3.616 GB, free: 21.32 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002316/11.82, allocations: 204.7 kB / 3.616 GB, free: 21.08 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002174/11.82, allocations: 0.7852 MB / 3.617 GB, free: 20.39 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004482/11.82, allocations: 45.7 kB / 3.617 GB, free: 20.34 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006939/11.82, allocations: 0.6074 MB / 3.617 GB, free: 19.77 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006077/11.82, allocations: 369.8 kB / 3.618 GB, free: 19.45 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001978/11.82, allocations: 24 kB / 3.618 GB, free: 19.42 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002561/11.82, allocations: 369.1 kB / 3.618 GB, free: 19.07 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003618/11.83, allocations: 0.615 MB / 3.619 GB, free: 18.56 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00398/11.83, allocations: 1.067 MB / 3.62 GB, free: 17.43 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002904/11.83, allocations: 0.7161 MB / 3.621 GB, free: 16.78 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.378e-05/11.83, allocations: 4 kB / 3.621 GB, free: 16.77 MB / 0.5105 GB Notification: Performance of matching and sorting (n=187) (initialization): time 0.006894/11.84, allocations: 1.94 MB / 3.622 GB, free: 15.06 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.00214/11.84, allocations: 4.968 MB / 3.627 GB, free: 9.719 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-05/11.84, allocations: 15.94 kB / 3.627 GB, free: 9.703 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01154/11.85, allocations: 1.093 MB / 3.628 GB, free: 8.945 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003101/11.86, allocations: 446.5 kB / 3.629 GB, free: 8.586 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001766/11.86, allocations: 0.9297 MB / 3.63 GB, free: 7.688 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002781/11.86, allocations: 178.2 kB / 3.63 GB, free: 7.543 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002504/11.86, allocations: 90.53 kB / 3.63 GB, free: 7.469 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/11.86, allocations: 4 kB / 3.63 GB, free: 7.465 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0066/11.87, allocations: 1.772 MB / 3.632 GB, free: 5.922 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.075e-05/11.87, allocations: 16 kB / 3.632 GB, free: 5.906 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004431/11.87, allocations: 82.53 kB / 3.632 GB, free: 5.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003244/11.87, allocations: 476.4 kB / 3.632 GB, free: 5.457 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002993/11.88, allocations: 1.78 MB / 3.634 GB, free: 3.633 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002375/11.88, allocations: 163 kB / 3.634 GB, free: 3.504 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000245/11.88, allocations: 87.48 kB / 3.634 GB, free: 3.43 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 15 (SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase,V5.state_b.phase,V5.state_a.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 162 * 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 {3 22} Notification: Performance of prepare postOptimizeDAE: time 0.001104/11.88, allocations: 392.1 kB / 3.635 GB, free: 3.043 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003985/11.88, allocations: 130.4 kB / 3.635 GB, free: 2.914 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4184/12.3, allocations: 6.696 MB / 3.641 GB, free: 61.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001436/12.3, allocations: 83.84 kB / 3.641 GB, free: 61.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.74e-05/12.3, allocations: 1 kB / 3.641 GB, free: 61.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.514e-05/12.3, allocations: 10.86 kB / 3.641 GB, free: 61.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005927/12.3, allocations: 2.885 MB / 3.644 GB, free: 60.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.301e-05/12.3, allocations: 3.688 kB / 3.644 GB, free: 60.88 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001981/12.31, allocations: 281.1 kB / 3.644 GB, free: 60.88 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01047/12.32, allocations: 2.077 MB / 3.646 GB, free: 60.82 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003685/12.32, allocations: 38.25 kB / 3.646 GB, free: 60.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002411/12.32, allocations: 1.608 MB / 3.648 GB, free: 60.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/12.32, allocations: 2.422 kB / 3.648 GB, free: 60.29 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008527/12.33, allocations: 3.718 MB / 3.652 GB, free: 59.95 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001499/12.33, allocations: 0.592 MB / 3.652 GB, free: 59.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005054/12.33, allocations: 28.42 kB / 3.652 GB, free: 59.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002147/12.33, allocations: 138.1 kB / 3.652 GB, free: 59.71 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004461/12.33, allocations: 108.3 kB / 3.653 GB, free: 59.71 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001451/12.33, allocations: 48.56 kB / 3.653 GB, free: 59.71 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001674/12.34, allocations: 0.7668 MB / 3.653 GB, free: 59.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.673e-06/12.34, allocations: 0 / 3.653 GB, free: 59.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009241/12.34, allocations: 1.79 MB / 3.655 GB, free: 59.57 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 51 ($cse6.phase,$cse6.region,$cse10.phase,$cse10.region,$cse14.phase,$cse14.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse43.phase,$cse43.region,$cse44.phase,$cse44.region,$cse46.phase,$cse46.region,$cse47.phase,$cse47.region,$cse52.phase,$cse52.region,$cse54.phase,$cse54.region,$cse55.phase,$cse55.region,$cse60.phase,$cse60.region,$cse61.phase,$cse61.region,$cse62.phase,$cse62.region,$cse63.phase,$cse63.region,SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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 {3 34} Notification: Performance of Backend phase and start with SimCode phase: time 0.01955/12.36, allocations: 5.782 MB / 3.661 GB, free: 58.56 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01042/12.37, allocations: 3.276 MB / 3.664 GB, free: 58.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/12.37, allocations: 3.844 kB / 3.664 GB, free: 58.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003891/12.38, allocations: 1.654 MB / 3.666 GB, free: 58.38 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005597/12.38, allocations: 0.5953 MB / 3.666 GB, free: 58.36 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9108/13.3, allocations: 184.3 MB / 3.846 GB, free: 47.75 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001573/13.3, allocations: 1.706 MB / 3.848 GB, free: 47.01 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001942/13.3, allocations: 0.9442 MB / 3.849 GB, free: 47 MB / 0.5105 GB Notification: Performance of SimCode: time 1.433e-06/13.3, allocations: 0 / 3.849 GB, free: 47 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.334/17.63, allocations: 61.43 MB / 3.909 GB, free: 44 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat does not exist to compare? outputFormat=mat