Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.984/1.984, allocations: 209.2 MB / 224.8 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006181/0.0006183, allocations: 15.98 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3651/0.3658, allocations: 48.7 MB / 331.4 MB, free: 6.398 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.215/7.58, allocations: 2.497 GB / 2.821 GB, free: 20.89 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/7.581, allocations: 84.89 kB / 2.821 GB, free: 20.84 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.331/10.91, allocations: 0.5631 GB / 3.384 GB, free: 35.76 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.896e-06/10.91, allocations: 0 / 3.384 GB, free: 35.76 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001173/10.91, allocations: 43 kB / 3.384 GB, free: 35.75 MB / 458.7 MB 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.01389/10.93, allocations: 2.617 MB / 3.386 GB, free: 34.67 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/10.93, allocations: 10.12 kB / 3.386 GB, free: 34.67 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006566/10.93, allocations: 175.2 kB / 3.387 GB, free: 34.62 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01511/10.94, allocations: 0.8176 MB / 3.387 GB, free: 34.54 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004733/10.95, allocations: 1.073 MB / 3.388 GB, free: 34.21 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002283/10.95, allocations: 100.3 kB / 3.389 GB, free: 34.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005951/10.95, allocations: 112.1 kB / 3.389 GB, free: 34.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01219/10.96, allocations: 2.212 MB / 3.391 GB, free: 33.84 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.219e-05/10.96, allocations: 5.219 kB / 3.391 GB, free: 33.84 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003677/10.96, allocations: 51.38 kB / 3.391 GB, free: 33.84 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.38e-05/10.96, allocations: 36.67 kB / 3.391 GB, free: 33.83 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01345/10.97, allocations: 2.175 MB / 3.393 GB, free: 33.83 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02467/11, allocations: 8.883 MB / 3.402 GB, free: 28.6 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01484/11.01, allocations: 1.941 MB / 3.404 GB, free: 28.56 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1724/11.19, allocations: 49.19 MB / 3.452 GB, free: 15.66 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.873e-05/11.19, allocations: 51 kB / 3.452 GB, free: 15.62 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001407/11.19, allocations: 149.5 kB / 3.452 GB, free: 15.55 MB / 474.7 MB Notification: Performance of pre-optimization done (n=106): time 4.759e-06/11.19, allocations: 0 / 3.452 GB, free: 15.55 MB / 474.7 MB Notification: Performance of matching and sorting (n=106): time 0.02436/11.21, allocations: 3.977 MB / 3.456 GB, free: 15.25 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000165/11.21, allocations: 192.5 kB / 3.456 GB, free: 15.03 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001516/11.21, allocations: 0.7826 MB / 3.457 GB, free: 14.86 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003961/11.21, allocations: 51.39 kB / 3.457 GB, free: 14.83 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005437/11.21, allocations: 0.6171 MB / 3.457 GB, free: 14.47 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004872/11.22, allocations: 359.6 kB / 3.458 GB, free: 14.24 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/11.22, allocations: 28.88 kB / 3.458 GB, free: 14.24 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002074/11.22, allocations: 365.5 kB / 3.458 GB, free: 13.93 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002528/11.22, allocations: 0.6233 MB / 3.459 GB, free: 13.92 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002944/11.22, allocations: 1.051 MB / 3.46 GB, free: 13.39 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002952/11.22, allocations: 0.7304 MB / 3.46 GB, free: 13.35 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-05/11.22, allocations: 3.531 kB / 3.46 GB, free: 13.35 MB / 474.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.007865/11.23, allocations: 1.944 MB / 3.462 GB, free: 29.21 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002352/11.23, allocations: 4.966 MB / 3.467 GB, free: 24 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.758e-05/11.23, allocations: 15.75 kB / 3.467 GB, free: 24 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01177/11.25, allocations: 1.091 MB / 3.468 GB, free: 23.95 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003147/11.25, allocations: 443.1 kB / 3.469 GB, free: 23.95 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001819/11.25, allocations: 0.9365 MB / 3.47 GB, free: 23.41 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00284/11.25, allocations: 169.9 kB / 3.47 GB, free: 23.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000269/11.25, allocations: 89.14 kB / 3.47 GB, free: 23.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/11.25, allocations: 5.438 kB / 3.47 GB, free: 23.4 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006531/11.26, allocations: 1.776 MB / 3.472 GB, free: 23.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/11.26, allocations: 11.84 kB / 3.472 GB, free: 23.32 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004393/11.26, allocations: 96.95 kB / 3.472 GB, free: 23.31 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003256/11.27, allocations: 474.7 kB / 3.472 GB, free: 23.31 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003109/11.27, allocations: 1.766 MB / 3.474 GB, free: 21.94 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002413/11.27, allocations: 167.1 kB / 3.474 GB, free: 21.92 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002123/11.27, allocations: 84.73 kB / 3.474 GB, free: 21.92 MB / 490.7 MB 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.001117/11.27, allocations: 396.5 kB / 3.474 GB, free: 21.72 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004073/11.27, allocations: 126.9 kB / 3.475 GB, free: 21.65 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01238/11.28, allocations: 6.711 MB / 3.481 GB, free: 20.98 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.34e-05/11.29, allocations: 82.14 kB / 3.481 GB, free: 20.98 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/11.29, allocations: 0 / 3.481 GB, free: 20.98 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.133e-05/11.29, allocations: 7.125 kB / 3.481 GB, free: 20.98 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004718/11.29, allocations: 2.89 MB / 3.484 GB, free: 20.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.645e-05/11.29, allocations: 4 kB / 3.484 GB, free: 20.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001897/11.29, allocations: 273 kB / 3.484 GB, free: 20.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009982/11.3, allocations: 2.076 MB / 3.486 GB, free: 20.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003302/11.3, allocations: 37.14 kB / 3.486 GB, free: 20.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002506/11.3, allocations: 1.609 MB / 3.488 GB, free: 19.95 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/11.3, allocations: 3.953 kB / 3.488 GB, free: 19.94 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007811/11.31, allocations: 3.714 MB / 3.492 GB, free: 19.45 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001332/11.31, allocations: 0.598 MB / 3.492 GB, free: 19.13 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003215/11.31, allocations: 21 kB / 3.492 GB, free: 19.13 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001722/11.32, allocations: 148.3 kB / 3.492 GB, free: 19.11 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003034/11.32, allocations: 106 kB / 3.492 GB, free: 19.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/11.32, allocations: 56.02 kB / 3.492 GB, free: 19.11 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001453/11.32, allocations: 0.7579 MB / 3.493 GB, free: 19 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.01e-07/11.32, allocations: 0 / 3.493 GB, free: 19 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009245/11.33, allocations: 1.792 MB / 3.495 GB, free: 18.77 MB / 490.7 MB 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.01912/11.35, allocations: 5.77 MB / 3.501 GB, free: 17.45 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01018/11.36, allocations: 3.277 MB / 3.504 GB, free: 17.23 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/11.36, allocations: 0 / 3.504 GB, free: 17.23 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003722/11.36, allocations: 1.659 MB / 3.505 GB, free: 17.21 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005578/11.37, allocations: 0.5964 MB / 3.506 GB, free: 17.16 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.918/12.28, allocations: 181.8 MB / 3.683 GB, free: 35.73 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001218/12.29, allocations: 1.699 MB / 3.685 GB, free: 34.36 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001754/12.29, allocations: 0.9451 MB / 3.686 GB, free: 34.25 MB / 490.7 MB Notification: Performance of SimCode: time 1.173e-06/12.29, allocations: 0 / 3.686 GB, free: 34.25 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.508/16.8, allocations: 61.26 MB / 3.746 GB, free: 54.26 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat does not exist to compare? outputFormat=mat