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.TestValveCoefficients.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.TestValveCoefficients,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.922/1.922, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004407/0.0004408, allocations: 16 kB / 282.7 MB, free: 9.547 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1125, allocations: 48.71 MB / 331.4 MB, free: 8.746 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.864/7.977, allocations: 2.497 GB / 2.821 GB, free: 17.84 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003095/7.977, allocations: 86.52 kB / 2.821 GB, free: 17.79 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.378/11.36, allocations: 0.6205 GB / 3.441 GB, free: 34.77 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.136e-06/11.36, allocations: 0 / 3.441 GB, free: 34.77 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001248/11.36, allocations: 40.78 kB / 3.441 GB, free: 34.77 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.01119/11.37, allocations: 2.498 MB / 3.444 GB, free: 33.51 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/11.37, allocations: 11.88 kB / 3.444 GB, free: 33.5 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000774/11.37, allocations: 187.8 kB / 3.444 GB, free: 33.46 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01123/11.38, allocations: 0.8994 MB / 3.445 GB, free: 33.38 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00342/11.38, allocations: 1.057 MB / 3.446 GB, free: 33.02 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000175/11.38, allocations: 107.4 kB / 3.446 GB, free: 33.02 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003158/11.38, allocations: 115.3 kB / 3.446 GB, free: 33.02 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009285/11.39, allocations: 2.272 MB / 3.448 GB, free: 32.55 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.649e-05/11.39, allocations: 9.531 kB / 3.448 GB, free: 32.55 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003147/11.39, allocations: 55.06 kB / 3.448 GB, free: 32.55 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.02e-05/11.39, allocations: 35.73 kB / 3.448 GB, free: 32.55 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01031/11.4, allocations: 2.145 MB / 3.45 GB, free: 32.5 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01545/11.42, allocations: 10.07 MB / 3.46 GB, free: 25.51 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006973/11.43, allocations: 1.528 MB / 3.462 GB, free: 25.48 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06267/11.49, allocations: 17 MB / 3.478 GB, free: 16.51 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/11.49, allocations: 42.44 kB / 3.478 GB, free: 16.46 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 3.257e-06/11.49, allocations: 3.938 kB / 3.478 GB, free: 16.46 MB / 458.7 MB Notification: Performance of matching and sorting (n=80): time 0.01216/11.5, allocations: 2.543 MB / 3.481 GB, free: 15.85 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.976e-05/11.5, allocations: 267.6 kB / 3.481 GB, free: 15.54 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0017/11.5, allocations: 0.8477 MB / 3.482 GB, free: 15.18 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001644/11.5, allocations: 40.61 kB / 3.482 GB, free: 15.14 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004775/11.5, allocations: 0.6863 MB / 3.483 GB, free: 14.55 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003096/11.5, allocations: 283.3 kB / 3.483 GB, free: 14.34 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/11.5, allocations: 24.59 kB / 3.483 GB, free: 14.32 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001138/11.5, allocations: 361.4 kB / 3.483 GB, free: 13.99 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001822/11.51, allocations: 473.5 kB / 3.484 GB, free: 13.86 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002128/11.51, allocations: 1.062 MB / 3.485 GB, free: 12.93 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002026/11.51, allocations: 0.5889 MB / 3.485 GB, free: 12.7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.414e-05/11.51, allocations: 3.938 kB / 3.485 GB, free: 12.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=167) (initialization): time 0.005023/11.51, allocations: 1.535 MB / 3.487 GB, free: 12.16 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002359/11.52, allocations: 7.319 MB / 3.494 GB, free: 20.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.389e-05/11.52, allocations: 25.25 kB / 3.494 GB, free: 20.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.795e-05/11.52, allocations: 27.81 kB / 3.494 GB, free: 20.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002583/11.52, allocations: 396.1 kB / 3.494 GB, free: 20.29 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.21e-05/11.52, allocations: 37.53 kB / 3.494 GB, free: 20.28 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002435/11.52, allocations: 262.5 kB / 3.495 GB, free: 20.17 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001823/11.52, allocations: 85.75 kB / 3.495 GB, free: 20.16 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/11.52, allocations: 7 kB / 3.495 GB, free: 20.16 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004744/11.53, allocations: 1.445 MB / 3.496 GB, free: 19.65 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.232e-05/11.53, allocations: 17.44 kB / 3.496 GB, free: 19.65 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.311e-05/11.53, allocations: 28.31 kB / 3.496 GB, free: 19.65 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002341/11.53, allocations: 391.7 kB / 3.497 GB, free: 19.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.782e-05/11.53, allocations: 40.53 kB / 3.497 GB, free: 19.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/11.53, allocations: 216.6 kB / 3.497 GB, free: 19.52 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002569/11.53, allocations: 84.3 kB / 3.497 GB, free: 19.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.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 (167): * Single equations (assignments): 167 * 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.001056/11.53, allocations: 404 kB / 3.497 GB, free: 19.18 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004038/11.53, allocations: 125.5 kB / 3.497 GB, free: 19.12 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01017/11.54, allocations: 5.937 MB / 3.503 GB, free: 16.44 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.144e-05/11.54, allocations: 82.62 kB / 3.503 GB, free: 16.42 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/11.54, allocations: 0 / 3.503 GB, free: 16.42 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.757e-05/11.54, allocations: 3.797 kB / 3.503 GB, free: 16.42 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004284/11.55, allocations: 2.775 MB / 3.506 GB, free: 15.05 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-05/11.55, allocations: 3.094 kB / 3.506 GB, free: 15.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001711/11.55, allocations: 258.5 kB / 3.506 GB, free: 15.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-05/11.55, allocations: 5.875 kB / 3.506 GB, free: 15.02 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001399/11.55, allocations: 31.61 kB / 3.506 GB, free: 15 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.07e-05/11.55, allocations: 3.812 kB / 3.506 GB, free: 15 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/11.55, allocations: 0 / 3.506 GB, free: 15 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006026/11.56, allocations: 2.834 MB / 3.509 GB, free: 13.23 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001456/11.56, allocations: 0.5228 MB / 3.51 GB, free: 12.75 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004247/11.56, allocations: 24 kB / 3.51 GB, free: 12.72 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001588/11.56, allocations: 126.7 kB / 3.51 GB, free: 12.62 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002662/11.56, allocations: 85.67 kB / 3.51 GB, free: 12.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.339e-05/11.56, allocations: 39.45 kB / 3.51 GB, free: 12.54 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001783/11.56, allocations: 0.7491 MB / 3.511 GB, free: 11.92 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.128e-06/11.56, allocations: 0 / 3.511 GB, free: 11.92 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009207/11.57, allocations: 1.729 MB / 3.512 GB, free: 10.21 MB / 474.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: 56 ($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,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * 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.01818/11.59, allocations: 5.242 MB / 3.517 GB, free: 5.699 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008144/11.6, allocations: 2.607 MB / 3.52 GB, free: 3.402 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/11.6, allocations: 5.125 kB / 3.52 GB, free: 3.398 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003004/11.6, allocations: 1.439 MB / 3.521 GB, free: 2.074 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005439/11.61, allocations: 0.5785 MB / 3.522 GB, free: 1.648 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.777/12.38, allocations: 139.3 MB / 3.658 GB, free: 19.92 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001161/12.39, allocations: 1.652 MB / 3.66 GB, free: 18.57 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00153/12.39, allocations: 0.8798 MB / 3.66 GB, free: 18.46 MB / 474.7 MB Notification: Performance of SimCode: time 1.332e-06/12.39, allocations: 0 / 3.66 GB, free: 18.46 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.204/16.59, allocations: 51.97 MB / 3.711 GB, free: 57.27 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat does not exist to compare? outputFormat=mat