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/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.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.353/2.353, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.1e-05/2.092e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.3461, allocations: 54.85 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.764/1.11, allocations: 283.1 MB / 0.6262 GB, free: 4.5 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003401/1.111, allocations: 80.55 kB / 0.6263 GB, free: 4.457 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.6778/1.788, allocations: 114.8 MB / 0.7384 GB, free: 83.44 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.033e-06/1.788, allocations: 0 / 0.7384 GB, free: 83.44 MB / 474.7 MB Notification: Performance of Transformations before backend: time 5.311e-05/1.789, allocations: 19.94 kB / 0.7384 GB, free: 83.42 MB / 474.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.001904/1.79, allocations: 0.8559 MB / 0.7393 GB, free: 82.51 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.625e-05/1.791, allocations: 12.02 kB / 0.7393 GB, free: 82.5 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004449/1.791, allocations: 79.16 kB / 0.7393 GB, free: 82.42 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001423/1.792, allocations: 0.5545 MB / 0.7399 GB, free: 81.82 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.975e-05/1.792, allocations: 12 kB / 0.7399 GB, free: 81.81 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.977e-05/1.793, allocations: 28 kB / 0.7399 GB, free: 81.79 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001027/1.794, allocations: 470.4 kB / 0.7404 GB, free: 81.32 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/1.795, allocations: 0.5703 MB / 0.7409 GB, free: 80.7 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.275e-05/1.795, allocations: 3.938 kB / 0.7409 GB, free: 80.7 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.193e-05/1.795, allocations: 8 kB / 0.7409 GB, free: 80.69 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/1.795, allocations: 12 kB / 0.741 GB, free: 80.68 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004401/1.799, allocations: 3.008 MB / 0.7439 GB, free: 77.48 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004082/1.8, allocations: 175 kB / 0.7441 GB, free: 77.3 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002282/1.8, allocations: 117.2 kB / 0.7442 GB, free: 77.18 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00167/1.802, allocations: 1.021 MB / 0.7452 GB, free: 76.06 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003244/1.802, allocations: 172.9 kB / 0.7453 GB, free: 75.87 MB / 474.7 MB Notification: Performance of pre-optimization done (n=25): time 3.016e-06/1.802, allocations: 4 kB / 0.7453 GB, free: 75.87 MB / 474.7 MB Notification: Performance of matching and sorting (n=25): time 0.003722/1.806, allocations: 0.5044 MB / 0.7458 GB, free: 75.36 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.751e-05/1.806, allocations: 162.2 kB / 0.746 GB, free: 75.16 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005518/1.806, allocations: 393.9 kB / 0.7464 GB, free: 74.77 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.308e-05/1.806, allocations: 25.7 kB / 0.7464 GB, free: 74.73 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002656/1.807, allocations: 401 kB / 0.7468 GB, free: 74.34 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.766e-05/1.807, allocations: 82.84 kB / 0.7468 GB, free: 74.26 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.022e-05/1.807, allocations: 8 kB / 0.7468 GB, free: 74.25 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 8.546e-05/1.807, allocations: 340 kB / 0.7472 GB, free: 73.91 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000225/1.807, allocations: 97.09 kB / 0.7473 GB, free: 73.82 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003675/1.808, allocations: 388.3 kB / 0.7476 GB, free: 73.3 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003347/1.811, allocations: 440.5 kB / 0.7481 GB, free: 72.87 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/1.811, allocations: 0 / 0.7481 GB, free: 72.87 MB / 474.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003966/1.815, allocations: 0.713 MB / 0.7488 GB, free: 72.16 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008088/1.816, allocations: 3.688 MB / 0.7524 GB, free: 68.18 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.983e-05/1.816, allocations: 11.98 kB / 0.7524 GB, free: 68.17 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.479e-05/1.816, allocations: 23.95 kB / 0.7524 GB, free: 68.14 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001907/1.818, allocations: 183.7 kB / 0.7526 GB, free: 67.96 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001142/1.819, allocations: 0.6756 MB / 0.7532 GB, free: 67.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008948/1.82, allocations: 63.36 kB / 0.7533 GB, free: 67.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/1.82, allocations: 35.98 kB / 0.7533 GB, free: 67.17 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/1.82, allocations: 4 kB / 0.7533 GB, free: 67.16 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003071/1.823, allocations: 0.5587 MB / 0.7539 GB, free: 66.61 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/1.823, allocations: 12 kB / 0.7539 GB, free: 66.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.193e-05/1.823, allocations: 12 kB / 0.7539 GB, free: 66.58 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006788/1.824, allocations: 135.9 kB / 0.754 GB, free: 66.45 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.871e-05/1.824, allocations: 23.88 kB / 0.754 GB, free: 66.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005423/1.825, allocations: 51.58 kB / 0.7541 GB, free: 66.38 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-05/1.825, allocations: 32 kB / 0.7541 GB, free: 66.34 MB / 474.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 () * 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.0002627/1.825, allocations: 175.6 kB / 0.7543 GB, free: 66.16 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003798/1.829, allocations: 0.5278 MB / 0.7548 GB, free: 65.62 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.418e-05/1.829, allocations: 55.34 kB / 0.7549 GB, free: 65.57 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002833/1.832, allocations: 0.6957 MB / 0.7555 GB, free: 64.86 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/1.832, allocations: 4 kB / 0.7555 GB, free: 64.86 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/1.832, allocations: 0 / 0.7555 GB, free: 64.86 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/1.832, allocations: 7.938 kB / 0.7555 GB, free: 64.85 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006233/1.832, allocations: 401.7 kB / 0.7559 GB, free: 64.42 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/1.832, allocations: 3.984 kB / 0.7559 GB, free: 64.42 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008899/1.833, allocations: 107.9 kB / 0.756 GB, free: 64.31 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/1.833, allocations: 0 / 0.756 GB, free: 64.31 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.277e-05/1.833, allocations: 11.97 kB / 0.756 GB, free: 64.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004745/1.834, allocations: 0.621 MB / 0.7567 GB, free: 63.66 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/1.834, allocations: 4.031 kB / 0.7567 GB, free: 63.65 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001711/1.836, allocations: 472.8 kB / 0.7571 GB, free: 63.17 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002745/1.836, allocations: 184.2 kB / 0.7573 GB, free: 62.97 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/1.836, allocations: 11.94 kB / 0.7573 GB, free: 62.96 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003538/1.836, allocations: 15.91 kB / 0.7573 GB, free: 62.94 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.588e-05/1.836, allocations: 23.97 kB / 0.7573 GB, free: 62.92 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.595e-05/1.837, allocations: 15.98 kB / 0.7574 GB, free: 62.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004298/1.837, allocations: 310.9 kB / 0.7576 GB, free: 62.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.837, allocations: 0 / 0.7576 GB, free: 62.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001794/1.839, allocations: 403.3 kB / 0.758 GB, free: 62.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: 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) * 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.00289/1.842, allocations: 1.344 MB / 0.7593 GB, free: 60.84 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002758/1.844, allocations: 0.7558 MB / 0.7601 GB, free: 60.07 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.209e-06/1.845, allocations: 4.25 kB / 0.7601 GB, free: 60.06 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001201/1.846, allocations: 307.2 kB / 0.7604 GB, free: 59.75 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001535/1.847, allocations: 176.6 kB / 0.7605 GB, free: 59.58 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00317/1.85, allocations: 1.032 MB / 0.7616 GB, free: 58.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/1.851, allocations: 0.8956 MB / 0.7624 GB, free: 57.57 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003772/1.851, allocations: 223.3 kB / 0.7626 GB, free: 57.36 MB / 474.7 MB Notification: Performance of SimCode: time 9.31e-07/1.851, allocations: 3.938 kB / 0.7626 GB, free: 57.35 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.975/4.827, allocations: 15.8 MB / 0.7781 GB, free: 41.54 MB / 474.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