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.Fittings.TestSimpleGenericOrifice.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.Fittings.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.02/2.02, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004379/0.000438, allocations: 8 kB / 282.7 MB, free: 9.547 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3648/0.3653, allocations: 48.7 MB / 331.4 MB, free: 6.406 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7158/1.081, allocations: 277.4 MB / 0.5945 GB, free: 5.684 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003973/1.082, allocations: 87.02 kB / 0.5946 GB, free: 5.633 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.6632/1.745, allocations: 116.2 MB / 0.7081 GB, free: 80.86 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.415e-06/1.745, allocations: 0 / 0.7081 GB, free: 80.86 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.092e-05/1.745, allocations: 19.98 kB / 0.7081 GB, free: 80.84 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001991/1.747, allocations: 0.9262 MB / 0.709 GB, free: 79.86 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/1.747, allocations: 8.031 kB / 0.709 GB, free: 79.86 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001512/1.747, allocations: 94.52 kB / 0.7091 GB, free: 79.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004199/1.748, allocations: 83.23 kB / 0.7092 GB, free: 79.67 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001335/1.749, allocations: 0.5364 MB / 0.7097 GB, free: 79.09 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.744e-05/1.749, allocations: 37 kB / 0.7098 GB, free: 79.06 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.103e-05/1.749, allocations: 40 kB / 0.7098 GB, free: 79.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001242/1.75, allocations: 0.6464 MB / 0.7104 GB, free: 78.31 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/1.75, allocations: 7.938 kB / 0.7104 GB, free: 78.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.412e-05/1.751, allocations: 20 kB / 0.7105 GB, free: 78.29 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/1.751, allocations: 12 kB / 0.7105 GB, free: 78.27 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/1.752, allocations: 0.4996 MB / 0.711 GB, free: 77.78 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004256/1.756, allocations: 3.076 MB / 0.714 GB, free: 74.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004647/1.756, allocations: 190.9 kB / 0.7141 GB, free: 74.31 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00159/1.758, allocations: 1.021 MB / 0.7151 GB, free: 73.19 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003201/1.758, allocations: 169 kB / 0.7153 GB, free: 73 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 3.667e-06/1.758, allocations: 0 / 0.7153 GB, free: 73 MB / 426.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009751/1.759, allocations: 447.2 kB / 0.7157 GB, free: 72.54 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.891e-05/1.759, allocations: 174.1 kB / 0.7159 GB, free: 72.33 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006313/1.76, allocations: 433.9 kB / 0.7163 GB, free: 71.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.77e-05/1.76, allocations: 33.7 kB / 0.7163 GB, free: 71.86 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002331/1.76, allocations: 405 kB / 0.7167 GB, free: 71.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.977e-05/1.76, allocations: 78.94 kB / 0.7168 GB, free: 71.38 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.19e-05/1.761, allocations: 4 kB / 0.7168 GB, free: 71.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.53e-05/1.761, allocations: 338.8 kB / 0.7171 GB, free: 71.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002638/1.761, allocations: 101.1 kB / 0.7172 GB, free: 70.94 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003837/1.761, allocations: 401.4 kB / 0.7176 GB, free: 70.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003795/1.762, allocations: 201.7 kB / 0.7178 GB, free: 70.21 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/1.762, allocations: 4 kB / 0.7178 GB, free: 70.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001165/1.763, allocations: 0.5565 MB / 0.7183 GB, free: 69.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007141/1.764, allocations: 3.685 MB / 0.7219 GB, free: 65.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.604e-05/1.764, allocations: 12 kB / 0.722 GB, free: 65.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.47e-05/1.764, allocations: 12 kB / 0.722 GB, free: 65.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001896/1.766, allocations: 195.7 kB / 0.7222 GB, free: 65.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004826/1.766, allocations: 0.6172 MB / 0.7228 GB, free: 64.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007173/1.767, allocations: 83.34 kB / 0.7228 GB, free: 64.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.691e-05/1.767, allocations: 39.98 kB / 0.7229 GB, free: 64.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.069e-05/1.767, allocations: 4 kB / 0.7229 GB, free: 64.68 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001065/1.768, allocations: 0.5093 MB / 0.7234 GB, free: 64.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/1.768, allocations: 12 kB / 0.7234 GB, free: 64.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/1.768, allocations: 12 kB / 0.7234 GB, free: 64.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006219/1.769, allocations: 131.7 kB / 0.7235 GB, free: 64.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.653e-05/1.769, allocations: 23.92 kB / 0.7235 GB, free: 63.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004171/1.769, allocations: 55.95 kB / 0.7236 GB, free: 63.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.973e-05/1.769, allocations: 35.98 kB / 0.7236 GB, free: 63.9 MB / 426.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: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent) * 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.0003957/1.77, allocations: 309.3 kB / 0.7239 GB, free: 63.58 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/1.77, allocations: 55.28 kB / 0.724 GB, free: 63.53 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00178/1.772, allocations: 0.6429 MB / 0.7246 GB, free: 62.87 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/1.772, allocations: 11.92 kB / 0.7246 GB, free: 62.86 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.548e-05/1.772, allocations: 0 / 0.7246 GB, free: 62.86 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/1.772, allocations: 3.984 kB / 0.7246 GB, free: 62.86 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006558/1.772, allocations: 477 kB / 0.7251 GB, free: 62.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/1.772, allocations: 3.953 kB / 0.7251 GB, free: 62.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009097/1.773, allocations: 95.92 kB / 0.7252 GB, free: 62.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/1.773, allocations: 4 kB / 0.7252 GB, free: 62.24 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.102e-05/1.773, allocations: 11.98 kB / 0.7252 GB, free: 62.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002825/1.774, allocations: 0.6015 MB / 0.7258 GB, free: 61.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/1.774, allocations: 0 / 0.7258 GB, free: 61.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007469/1.774, allocations: 414.3 kB / 0.7262 GB, free: 61.17 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002407/1.775, allocations: 184.2 kB / 0.7263 GB, free: 60.97 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001179/1.775, allocations: 12 kB / 0.7264 GB, free: 60.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00035/1.775, allocations: 20.08 kB / 0.7264 GB, free: 60.94 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.902e-05/1.775, allocations: 19.97 kB / 0.7264 GB, free: 60.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.162e-05/1.775, allocations: 15.98 kB / 0.7264 GB, free: 60.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005102/1.776, allocations: 354.8 kB / 0.7267 GB, free: 60.56 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.7e-07/1.776, allocations: 3.938 kB / 0.7268 GB, free: 60.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001692/1.777, allocations: 427.3 kB / 0.7272 GB, free: 60.14 MB / 426.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: 5 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent) * Number of discrete states: 5 (p_table.last,p_table.nextEvent,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.001879/1.779, allocations: 1.267 MB / 0.7284 GB, free: 58.84 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002908/1.782, allocations: 0.7671 MB / 0.7291 GB, free: 58.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/1.782, allocations: 4 kB / 0.7292 GB, free: 58.05 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001242/1.784, allocations: 291.3 kB / 0.7294 GB, free: 57.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001507/1.785, allocations: 186.1 kB / 0.7296 GB, free: 57.57 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007438/1.793, allocations: 9.5 MB / 0.7389 GB, free: 47.83 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/1.793, allocations: 0.9073 MB / 0.7398 GB, free: 46.89 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004033/1.793, allocations: 223.3 kB / 0.74 GB, free: 46.68 MB / 426.7 MB Notification: Performance of SimCode: time 9.72e-07/1.793, allocations: 0 / 0.74 GB, free: 46.68 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.95/4.743, allocations: 15.7 MB / 0.7553 GB, free: 30.98 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat does not exist to compare? outputFormat=mat