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.TestValveIncompressible.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.TestValveIncompressible,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.45/2.45, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006031/0.0006032, allocations: 8 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3688/0.3695, allocations: 54.85 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.067/8.437, allocations: 2.608 GB / 2.968 GB, free: 88.61 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003204/8.437, allocations: 90.81 kB / 2.968 GB, free: 88.56 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.935/11.37, allocations: 0.4999 GB / 3.468 GB, free: 50.23 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.444e-06/11.37, allocations: 3.906 kB / 3.468 GB, free: 50.23 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001069/11.37, allocations: 30.86 kB / 3.468 GB, free: 50.23 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.01014/11.38, allocations: 2.174 MB / 3.47 GB, free: 49.38 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/11.38, allocations: 7.812 kB / 3.47 GB, free: 49.38 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005701/11.38, allocations: 147.2 kB / 3.47 GB, free: 49.34 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008463/11.39, allocations: 0.7147 MB / 3.471 GB, free: 49.27 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002835/11.39, allocations: 0.8456 MB / 3.472 GB, free: 48.97 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/11.39, allocations: 81.53 kB / 3.472 GB, free: 48.97 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002624/11.39, allocations: 93.33 kB / 3.472 GB, free: 48.97 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006914/11.4, allocations: 1.736 MB / 3.474 GB, free: 48.64 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.127e-05/11.4, allocations: 5.062 kB / 3.474 GB, free: 48.64 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002371/11.4, allocations: 56.34 kB / 3.474 GB, free: 48.64 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.55e-05/11.4, allocations: 24.47 kB / 3.474 GB, free: 48.64 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008038/11.41, allocations: 1.64 MB / 3.476 GB, free: 48.63 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01215/11.42, allocations: 7.369 MB / 3.483 GB, free: 43.66 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005896/11.43, allocations: 1.211 MB / 3.484 GB, free: 43.64 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06876/11.5, allocations: 17.61 MB / 3.501 GB, free: 34.89 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.955e-05/11.5, allocations: 41.59 kB / 3.501 GB, free: 34.85 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=67): time 3.076e-06/11.5, allocations: 0 / 3.501 GB, free: 34.85 MB / 0.4948 GB Notification: Performance of matching and sorting (n=67): time 0.01096/11.51, allocations: 2.083 MB / 3.503 GB, free: 34.77 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.632e-05/11.51, allocations: 214 kB / 3.503 GB, free: 34.52 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001136/11.51, allocations: 0.5998 MB / 3.504 GB, free: 34.38 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001979/11.51, allocations: 38.8 kB / 3.504 GB, free: 34.35 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004157/11.51, allocations: 0.5502 MB / 3.505 GB, free: 34 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000308/11.51, allocations: 232.2 kB / 3.505 GB, free: 33.86 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.114e-05/11.51, allocations: 20.97 kB / 3.505 GB, free: 33.86 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001085/11.51, allocations: 350.1 kB / 3.505 GB, free: 33.54 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001592/11.51, allocations: 376 kB / 3.505 GB, free: 33.54 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001932/11.51, allocations: 0.7878 MB / 3.506 GB, free: 33.02 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001902/11.52, allocations: 468.9 kB / 3.507 GB, free: 33.02 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-05/11.52, allocations: 3.875 kB / 3.507 GB, free: 33.02 MB / 0.4948 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.004798/11.52, allocations: 1.188 MB / 3.508 GB, free: 32.95 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001193/11.52, allocations: 5.054 MB / 3.513 GB, free: 27.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.753e-05/11.52, allocations: 9.781 kB / 3.513 GB, free: 27.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.072e-05/11.52, allocations: 23.38 kB / 3.513 GB, free: 27.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002054/11.52, allocations: 301 kB / 3.513 GB, free: 27.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.249e-05/11.52, allocations: 22.5 kB / 3.513 GB, free: 27.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001975/11.53, allocations: 191.2 kB / 3.513 GB, free: 27.64 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002723/11.53, allocations: 64.98 kB / 3.513 GB, free: 27.64 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/11.53, allocations: 3.125 kB / 3.513 GB, free: 27.64 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005485/11.53, allocations: 1.12 MB / 3.514 GB, free: 27.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.904e-05/11.53, allocations: 13.44 kB / 3.514 GB, free: 27.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.314e-05/11.53, allocations: 20.47 kB / 3.515 GB, free: 27.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002357/11.53, allocations: 297 kB / 3.515 GB, free: 27.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.914e-05/11.53, allocations: 25.98 kB / 3.515 GB, free: 27.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002058/11.54, allocations: 161.8 kB / 3.515 GB, free: 27.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002254/11.54, allocations: 58.5 kB / 3.515 GB, free: 27.59 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.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 (127): * Single equations (assignments): 127 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001104/11.54, allocations: 359.5 kB / 3.515 GB, free: 27.39 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004151/11.54, allocations: 96.14 kB / 3.515 GB, free: 27.34 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01196/11.55, allocations: 4.643 MB / 3.52 GB, free: 26.85 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-05/11.55, allocations: 64.44 kB / 3.52 GB, free: 26.85 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/11.55, allocations: 0 / 3.52 GB, free: 26.85 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.182e-05/11.55, allocations: 3.469 kB / 3.52 GB, free: 26.85 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004651/11.56, allocations: 2.162 MB / 3.522 GB, free: 26.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.342e-05/11.56, allocations: 0 / 3.522 GB, free: 26.52 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002057/11.56, allocations: 222.5 kB / 3.522 GB, free: 26.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.886e-05/11.56, allocations: 3.844 kB / 3.522 GB, free: 26.52 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001296/11.56, allocations: 24.44 kB / 3.522 GB, free: 26.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.099e-05/11.56, allocations: 3.406 kB / 3.522 GB, free: 26.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/11.56, allocations: 1.875 kB / 3.522 GB, free: 26.51 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006453/11.56, allocations: 2.272 MB / 3.525 GB, free: 26.15 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001226/11.57, allocations: 452.5 kB / 3.525 GB, free: 25.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003771/11.57, allocations: 20.75 kB / 3.525 GB, free: 25.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001736/11.57, allocations: 113.2 kB / 3.525 GB, free: 25.88 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00028/11.57, allocations: 67.33 kB / 3.525 GB, free: 25.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/11.57, allocations: 37.22 kB / 3.525 GB, free: 25.88 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001513/11.57, allocations: 0.5696 MB / 3.526 GB, free: 25.77 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.41e-07/11.57, allocations: 0 / 3.526 GB, free: 25.77 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009815/11.58, allocations: 1.546 MB / 3.527 GB, free: 25.55 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.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 (91): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01999/11.6, allocations: 4.496 MB / 3.532 GB, free: 24.43 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008558/11.61, allocations: 2.048 MB / 3.534 GB, free: 24.37 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/11.61, allocations: 3.844 kB / 3.534 GB, free: 24.37 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002807/11.61, allocations: 1.142 MB / 3.535 GB, free: 24.35 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004306/11.62, allocations: 468.8 kB / 3.535 GB, free: 24.31 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8071/12.42, allocations: 136.1 MB / 3.668 GB, free: 49.92 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001034/12.42, allocations: 1.424 MB / 3.67 GB, free: 49.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001223/12.42, allocations: 0.6705 MB / 3.67 GB, free: 49.19 MB / 0.5105 GB Notification: Performance of SimCode: time 1.032e-06/12.42, allocations: 3.75 kB / 3.67 GB, free: 49.19 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.144/16.57, allocations: 44.42 MB / 3.714 GB, free: 46.79 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat does not exist to compare? outputFormat=mat