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.TestValveCoefficients.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.347/2.347, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.78e-05/1.797e-05, allocations: 0 / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3675/0.3676, allocations: 54.86 MB / 358.1 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.726/8.093, allocations: 2.607 GB / 2.957 GB, free: 122.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/8.094, allocations: 84.73 kB / 2.957 GB, free: 122.9 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.454/11.55, allocations: 0.6261 GB / 3.583 GB, free: 42.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.134e-06/11.55, allocations: 3.719 kB / 3.583 GB, free: 42.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001733/11.55, allocations: 43.55 kB / 3.583 GB, free: 42.3 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.01133/11.56, allocations: 2.438 MB / 3.585 GB, free: 41.14 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/11.56, allocations: 9.156 kB / 3.585 GB, free: 41.14 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01132/11.57, allocations: 0.9512 MB / 3.586 GB, free: 41.06 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003842/11.57, allocations: 1.058 MB / 3.587 GB, free: 40.73 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002167/11.58, allocations: 62.55 kB / 3.587 GB, free: 40.73 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004526/11.58, allocations: 65.56 kB / 3.587 GB, free: 40.73 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003949/11.58, allocations: 1.207 MB / 3.589 GB, free: 40.72 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004315/11.58, allocations: 1.417 MB / 3.59 GB, free: 40.28 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.529e-05/11.58, allocations: 9.75 kB / 3.59 GB, free: 40.28 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003026/11.58, allocations: 14.23 kB / 3.59 GB, free: 40.28 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.273e-05/11.58, allocations: 30.12 kB / 3.59 GB, free: 40.28 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.419/13, allocations: 266 MB / 3.85 GB, free: 24.09 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007505/13, allocations: 346.6 kB / 3.85 GB, free: 23.89 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004405/13, allocations: 226 kB / 3.85 GB, free: 23.76 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0589/13.06, allocations: 15.7 MB / 3.866 GB, free: 9.492 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.2e-05/13.06, allocations: 47.06 kB / 3.866 GB, free: 9.445 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=48): time 2.945e-06/13.06, allocations: 4 kB / 3.866 GB, free: 9.441 MB / 0.5573 GB Notification: Performance of matching and sorting (n=48): time 0.008649/13.07, allocations: 1.591 MB / 3.867 GB, free: 8.574 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000162/13.07, allocations: 261.5 kB / 3.867 GB, free: 8.258 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001942/13.07, allocations: 0.8681 MB / 3.868 GB, free: 7.707 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.00021/13.07, allocations: 29.7 kB / 3.868 GB, free: 7.672 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006819/13.08, allocations: 0.7848 MB / 3.869 GB, free: 7.199 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002832/13.08, allocations: 178 kB / 3.869 GB, free: 7.09 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/13.08, allocations: 0 / 3.869 GB, free: 7.09 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000524/13.08, allocations: 362.5 kB / 3.87 GB, free: 22.76 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000909/13.08, allocations: 311.9 kB / 3.87 GB, free: 22.59 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/13.08, allocations: 0.8845 MB / 3.871 GB, free: 21.63 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004845/13.08, allocations: 0.7454 MB / 3.872 GB, free: 21.21 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.619e-05/13.08, allocations: 4 kB / 3.872 GB, free: 21.21 MB / 0.573 GB Notification: Performance of matching and sorting (n=167) (initialization): time 0.007009/13.09, allocations: 1.451 MB / 3.873 GB, free: 20.34 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002966/13.09, allocations: 7.317 MB / 3.88 GB, free: 12.62 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-05/13.09, allocations: 17.5 kB / 3.88 GB, free: 12.6 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.61e-05/13.09, allocations: 32 kB / 3.88 GB, free: 12.57 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002685/13.1, allocations: 393.8 kB / 3.881 GB, free: 12.29 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.331e-05/13.1, allocations: 45.53 kB / 3.881 GB, free: 12.26 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003514/13.1, allocations: 358.2 kB / 3.881 GB, free: 12 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000286/13.1, allocations: 83.78 kB / 3.881 GB, free: 11.94 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/13.1, allocations: 8.469 kB / 3.881 GB, free: 11.93 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0054/13.11, allocations: 1.238 MB / 3.882 GB, free: 11.22 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.892e-05/13.11, allocations: 16 kB / 3.882 GB, free: 11.21 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.892e-05/13.11, allocations: 35.89 kB / 3.882 GB, free: 11.18 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00242/13.11, allocations: 388.1 kB / 3.883 GB, free: 10.89 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.092e-05/13.11, allocations: 35.44 kB / 3.883 GB, free: 10.87 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00242/13.11, allocations: 231.2 kB / 3.883 GB, free: 10.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002169/13.11, allocations: 86.02 kB / 3.883 GB, free: 10.64 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 16 (SourceP4.medium.phase,SinkP4.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP1.medium.phase,SinkP1.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 () * 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.0004588/13.11, allocations: 170.9 kB / 3.883 GB, free: 10.51 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004559/13.12, allocations: 0.7776 MB / 3.884 GB, free: 10 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002271/13.12, allocations: 114.6 kB / 3.884 GB, free: 9.887 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004161/13.12, allocations: 1.825 MB / 3.886 GB, free: 8.859 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.356e-05/13.12, allocations: 9.938 kB / 3.886 GB, free: 8.855 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.347e-06/13.12, allocations: 4 kB / 3.886 GB, free: 8.852 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/13.12, allocations: 6.766 kB / 3.886 GB, free: 8.848 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003009/13.12, allocations: 1.361 MB / 3.887 GB, free: 8.176 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/13.12, allocations: 1.875 kB / 3.887 GB, free: 8.176 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006756/13.12, allocations: 93.17 kB / 3.887 GB, free: 8.105 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/13.12, allocations: 0 / 3.887 GB, free: 8.105 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.183e-05/13.12, allocations: 4 kB / 3.887 GB, free: 8.102 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.533e-06/13.12, allocations: 0 / 3.887 GB, free: 8.102 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/13.12, allocations: 0.5625 kB / 3.887 GB, free: 8.102 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002368/13.13, allocations: 0.7114 MB / 3.888 GB, free: 7.543 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001451/13.13, allocations: 0.607 MB / 3.889 GB, free: 7.16 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000445/13.13, allocations: 4 kB / 3.889 GB, free: 7.156 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001592/13.13, allocations: 85.7 kB / 3.889 GB, free: 7.09 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.694e-05/13.13, allocations: 32.02 kB / 3.889 GB, free: 7.074 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.921e-05/13.13, allocations: 15.94 kB / 3.889 GB, free: 7.062 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003072/13.13, allocations: 1.428 MB / 3.89 GB, free: 6.215 MB / 0.573 GB Notification: Performance of sort global known variables: time 6.41e-07/13.13, allocations: 0 / 3.89 GB, free: 6.215 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009997/13.14, allocations: 1.748 MB / 3.892 GB, free: 4.676 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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 Backend phase and start with SimCode phase: time 0.01453/13.16, allocations: 3.265 MB / 3.895 GB, free: 2.203 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.003596/13.16, allocations: 1.246 MB / 3.896 GB, free: 1.469 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.216e-06/13.16, allocations: 0 / 3.896 GB, free: 1.469 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.000413/13.16, allocations: 156.5 kB / 3.896 GB, free: 1.371 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004527/13.17, allocations: 481.7 kB / 3.897 GB, free: 1.113 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4126/13.58, allocations: 2.343 MB / 3.899 GB, free: 120.1 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001705/13.58, allocations: 1.349 MB / 3.9 GB, free: 119.4 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001767/13.58, allocations: 0.7123 MB / 3.901 GB, free: 119.4 MB / 0.573 GB Notification: Performance of SimCode: time 1.513e-06/13.58, allocations: 1.875 kB / 3.901 GB, free: 119.4 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.99/17.57, allocations: 50.85 MB / 3.951 GB, free: 115.7 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat does not exist to compare? outputFormat=mat