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.Fittings.TestSimpleGenericOrifice.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.Fittings.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.153/2.153, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004317/0.0004319, allocations: 12 kB / 314.5 MB, free: 9.457 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3449, allocations: 54.85 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.807/1.152, allocations: 283.9 MB / 0.6379 GB, free: 11.71 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003139/1.152, allocations: 92.95 kB / 0.638 GB, free: 11.65 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 0.7059/1.858, allocations: 116.3 MB / 0.7516 GB, free: 102.4 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.475e-06/1.858, allocations: 0 / 0.7516 GB, free: 102.4 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.243e-05/1.858, allocations: 16 kB / 0.7516 GB, free: 102.4 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.002218/1.861, allocations: 0.9419 MB / 0.7525 GB, free: 101.4 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/1.861, allocations: 8.031 kB / 0.7525 GB, free: 101.4 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002169/1.861, allocations: 86.52 kB / 0.7526 GB, free: 101.3 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004378/1.861, allocations: 79.23 kB / 0.7527 GB, free: 101.2 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/1.863, allocations: 0.5482 MB / 0.7532 GB, free: 100.6 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.642e-05/1.863, allocations: 33 kB / 0.7533 GB, free: 100.6 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.448e-05/1.863, allocations: 48 kB / 0.7533 GB, free: 100.5 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/1.864, allocations: 0.6395 MB / 0.7539 GB, free: 99.83 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/1.864, allocations: 0 / 0.7539 GB, free: 99.83 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.577e-05/1.865, allocations: 23.98 kB / 0.754 GB, free: 99.81 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/1.865, allocations: 12 kB / 0.754 GB, free: 99.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/1.866, allocations: 0.5112 MB / 0.7545 GB, free: 99.29 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004495/1.87, allocations: 3.099 MB / 0.7575 GB, free: 95.99 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000472/1.871, allocations: 187.1 kB / 0.7577 GB, free: 95.8 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001759/1.872, allocations: 1.025 MB / 0.7587 GB, free: 94.67 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000361/1.873, allocations: 185 kB / 0.7589 GB, free: 94.47 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 4.068e-06/1.873, allocations: 0 / 0.7589 GB, free: 94.47 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.001036/1.874, allocations: 456.1 kB / 0.7593 GB, free: 94 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/1.874, allocations: 158.2 kB / 0.7594 GB, free: 93.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006342/1.875, allocations: 433.9 kB / 0.7599 GB, free: 93.38 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.955e-05/1.875, allocations: 33.7 kB / 0.7599 GB, free: 93.34 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003091/1.875, allocations: 405 kB / 0.7603 GB, free: 92.93 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.004e-05/1.875, allocations: 86.84 kB / 0.7604 GB, free: 92.85 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.555e-05/1.875, allocations: 12 kB / 0.7604 GB, free: 92.84 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.766e-05/1.875, allocations: 330.8 kB / 0.7607 GB, free: 92.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002832/1.876, allocations: 117 kB / 0.7608 GB, free: 92.39 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004041/1.876, allocations: 393.5 kB / 0.7612 GB, free: 91.87 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004068/1.876, allocations: 215.2 kB / 0.7614 GB, free: 91.65 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/1.876, allocations: 4 kB / 0.7614 GB, free: 91.65 MB / 490.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001233/1.878, allocations: 0.5428 MB / 0.7619 GB, free: 91.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007582/1.878, allocations: 3.695 MB / 0.7655 GB, free: 87.11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/1.878, allocations: 8 kB / 0.7655 GB, free: 87.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.929e-05/1.878, allocations: 16 kB / 0.7655 GB, free: 87.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002024/1.881, allocations: 187.7 kB / 0.7657 GB, free: 86.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005099/1.881, allocations: 0.621 MB / 0.7663 GB, free: 86.26 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000776/1.882, allocations: 79.36 kB / 0.7664 GB, free: 86.18 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.268e-05/1.882, allocations: 43.91 kB / 0.7664 GB, free: 86.14 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/1.882, allocations: 8.047 kB / 0.7665 GB, free: 86.13 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001132/1.883, allocations: 0.5125 MB / 0.767 GB, free: 85.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/1.883, allocations: 8.938 kB / 0.767 GB, free: 85.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/1.883, allocations: 16 kB / 0.767 GB, free: 85.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006413/1.884, allocations: 127.8 kB / 0.7671 GB, free: 85.46 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.743e-05/1.884, allocations: 23.88 kB / 0.7671 GB, free: 85.44 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004787/1.884, allocations: 59.58 kB / 0.7672 GB, free: 85.38 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.776e-05/1.884, allocations: 35.98 kB / 0.7672 GB, free: 85.34 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004545/1.885, allocations: 312.4 kB / 0.7675 GB, free: 85.02 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/1.885, allocations: 63.3 kB / 0.7676 GB, free: 84.96 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001945/1.887, allocations: 0.6355 MB / 0.7682 GB, free: 84.31 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.451e-05/1.887, allocations: 4 kB / 0.7682 GB, free: 84.31 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/1.887, allocations: 0 / 0.7682 GB, free: 84.31 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.357e-06/1.887, allocations: 3.984 kB / 0.7682 GB, free: 84.3 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008167/1.888, allocations: 485 kB / 0.7687 GB, free: 83.78 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/1.888, allocations: 0 / 0.7687 GB, free: 83.78 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009719/1.889, allocations: 107.8 kB / 0.7688 GB, free: 83.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.768e-06/1.889, allocations: 4 kB / 0.7688 GB, free: 83.67 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.971e-05/1.889, allocations: 8 kB / 0.7688 GB, free: 83.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003236/1.889, allocations: 0.5937 MB / 0.7694 GB, free: 83.05 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/1.889, allocations: 0 / 0.7694 GB, free: 83.05 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000834/1.89, allocations: 422.8 kB / 0.7698 GB, free: 82.61 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002864/1.891, allocations: 184.2 kB / 0.7699 GB, free: 82.41 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001244/1.891, allocations: 12 kB / 0.7699 GB, free: 82.39 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004171/1.891, allocations: 19.98 kB / 0.77 GB, free: 82.38 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.071e-05/1.891, allocations: 27.92 kB / 0.77 GB, free: 82.35 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.751e-05/1.891, allocations: 15.98 kB / 0.77 GB, free: 82.33 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0005523/1.892, allocations: 358.8 kB / 0.7703 GB, free: 81.98 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.892, allocations: 0 / 0.7703 GB, free: 81.98 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001907/1.894, allocations: 447.1 kB / 0.7708 GB, free: 81.55 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: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002257/1.896, allocations: 1.273 MB / 0.772 GB, free: 80.25 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003242/1.899, allocations: 0.8353 MB / 0.7728 GB, free: 79.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/1.899, allocations: 0 / 0.7728 GB, free: 79.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001358/1.901, allocations: 327.2 kB / 0.7731 GB, free: 79.07 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001576/1.902, allocations: 190 kB / 0.7733 GB, free: 78.88 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00807/1.91, allocations: 9.538 MB / 0.7826 GB, free: 69.09 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/1.911, allocations: 0.9 MB / 0.7835 GB, free: 68.17 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004306/1.911, allocations: 219.3 kB / 0.7837 GB, free: 67.95 MB / 490.7 MB Notification: Performance of SimCode: time 1.182e-06/1.911, allocations: 0 / 0.7837 GB, free: 67.95 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.952/4.864, allocations: 15.84 MB / 0.7992 GB, free: 52.12 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat does not exist to compare? outputFormat=mat