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.458/2.458, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.556e-05/3.565e-05, allocations: 4 kB / 309.8 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.411/0.4111, allocations: 54.85 MB / 364.6 MB, free: 5.559 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7875/1.199, allocations: 283.8 MB / 0.6332 GB, free: 47.41 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003421/1.199, allocations: 77.77 kB / 0.6333 GB, free: 47.37 MB / 458.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.744/1.943, allocations: 115.9 MB / 0.7464 GB, free: 145.4 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.803e-06/1.943, allocations: 0 / 0.7464 GB, free: 145.4 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.4e-05/1.943, allocations: 21.69 kB / 0.7465 GB, free: 145.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.001831/1.945, allocations: 0.8555 MB / 0.7473 GB, free: 144.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/1.945, allocations: 9.812 kB / 0.7473 GB, free: 144.8 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001285/1.945, allocations: 88.2 kB / 0.7474 GB, free: 144.8 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004292/1.946, allocations: 78.28 kB / 0.7475 GB, free: 144.8 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00146/1.947, allocations: 0.548 MB / 0.748 GB, free: 144.5 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.657e-05/1.947, allocations: 35.09 kB / 0.748 GB, free: 144.5 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.902e-05/1.947, allocations: 46.25 kB / 0.7481 GB, free: 144.5 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00133/1.949, allocations: 0.6331 MB / 0.7487 GB, free: 144.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.864e-05/1.949, allocations: 0 / 0.7487 GB, free: 144.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.751e-05/1.949, allocations: 26.97 kB / 0.7487 GB, free: 144.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/1.949, allocations: 17.5 kB / 0.7487 GB, free: 144.3 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/1.95, allocations: 0.5 MB / 0.7492 GB, free: 144.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004715/1.955, allocations: 3.099 MB / 0.7523 GB, free: 142.3 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005255/1.955, allocations: 187 kB / 0.7524 GB, free: 142.3 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002681/1.956, allocations: 112.4 kB / 0.7525 GB, free: 142.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001872/1.957, allocations: 1.037 MB / 0.7536 GB, free: 141.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003587/1.958, allocations: 182.5 kB / 0.7537 GB, free: 141.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 4.539e-06/1.958, allocations: 0 / 0.7537 GB, free: 141.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.0008537/1.959, allocations: 292.6 kB / 0.754 GB, free: 141.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.659e-05/1.959, allocations: 162 kB / 0.7542 GB, free: 141.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000712/1.96, allocations: 434 kB / 0.7546 GB, free: 141.1 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.227e-05/1.96, allocations: 28.89 kB / 0.7546 GB, free: 141.1 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002707/1.96, allocations: 409.3 kB / 0.755 GB, free: 140.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.723e-05/1.96, allocations: 85.47 kB / 0.7551 GB, free: 140.8 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.576e-05/1.96, allocations: 13.03 kB / 0.7551 GB, free: 140.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.13e-05/1.96, allocations: 332 kB / 0.7554 GB, free: 140.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002885/1.96, allocations: 109 kB / 0.7555 GB, free: 140.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004556/1.961, allocations: 395.4 kB / 0.7559 GB, free: 140.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004259/1.961, allocations: 208.8 kB / 0.7561 GB, free: 140.1 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/1.961, allocations: 3.969 kB / 0.7561 GB, free: 140.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001297/1.963, allocations: 0.5442 MB / 0.7566 GB, free: 139.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000944/1.964, allocations: 3.69 MB / 0.7602 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.182e-05/1.964, allocations: 11.53 kB / 0.7602 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.285e-05/1.964, allocations: 14.81 kB / 0.7602 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002044/1.966, allocations: 190.9 kB / 0.7604 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000535/1.966, allocations: 0.6203 MB / 0.761 GB, free: 135.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008325/1.967, allocations: 73.42 kB / 0.7611 GB, free: 135.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-05/1.967, allocations: 39.77 kB / 0.7611 GB, free: 135.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/1.967, allocations: 6.406 kB / 0.7611 GB, free: 135.5 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001132/1.969, allocations: 0.4979 MB / 0.7616 GB, free: 135.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/1.969, allocations: 10.91 kB / 0.7616 GB, free: 135.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/1.969, allocations: 17.67 kB / 0.7617 GB, free: 135.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006812/1.969, allocations: 137.4 kB / 0.7618 GB, free: 135.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.779e-05/1.969, allocations: 14.78 kB / 0.7618 GB, free: 135.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005022/1.97, allocations: 64.61 kB / 0.7619 GB, free: 135.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.493e-05/1.97, allocations: 35.05 kB / 0.7619 GB, free: 135.3 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 () * 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.0002572/1.97, allocations: 179.2 kB / 0.7621 GB, free: 135.2 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/1.97, allocations: 55.66 kB / 0.7621 GB, free: 135.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001963/1.972, allocations: 0.6402 MB / 0.7628 GB, free: 135 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/1.972, allocations: 2.906 kB / 0.7628 GB, free: 135 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/1.972, allocations: 7.906 kB / 0.7628 GB, free: 135 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/1.972, allocations: 0 / 0.7628 GB, free: 135 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008205/1.973, allocations: 475 kB / 0.7632 GB, free: 134.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/1.973, allocations: 0 / 0.7632 GB, free: 134.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009756/1.974, allocations: 110.3 kB / 0.7633 GB, free: 134.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.108e-05/1.974, allocations: 10.83 kB / 0.7633 GB, free: 134.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.596e-05/1.974, allocations: 5.938 kB / 0.7633 GB, free: 134.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003342/1.975, allocations: 0.5969 MB / 0.7639 GB, free: 134.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/1.975, allocations: 0 / 0.7639 GB, free: 134.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008796/1.976, allocations: 409.7 kB / 0.7643 GB, free: 134.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003366/1.976, allocations: 190 kB / 0.7645 GB, free: 133.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001132/1.976, allocations: 7.969 kB / 0.7645 GB, free: 133.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003899/1.976, allocations: 25.17 kB / 0.7645 GB, free: 133.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.491e-05/1.977, allocations: 22.59 kB / 0.7645 GB, free: 133.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.991e-05/1.977, allocations: 19.45 kB / 0.7646 GB, free: 133.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0005807/1.977, allocations: 349.2 kB / 0.7649 GB, free: 133.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.977, allocations: 0 / 0.7649 GB, free: 133.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001919/1.979, allocations: 437.8 kB / 0.7653 GB, free: 133.7 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) * 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.002239/1.981, allocations: 1.27 MB / 0.7666 GB, free: 132.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003253/1.985, allocations: 0.8168 MB / 0.7674 GB, free: 132.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/1.985, allocations: 3.969 kB / 0.7674 GB, free: 132.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001332/1.986, allocations: 314.1 kB / 0.7677 GB, free: 132.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001638/1.988, allocations: 198.3 kB / 0.7678 GB, free: 132.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003613/1.991, allocations: 1.074 MB / 0.7689 GB, free: 131.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/1.992, allocations: 0.9005 MB / 0.7698 GB, free: 131.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000419/1.992, allocations: 224.1 kB / 0.77 GB, free: 131 MB / 490.7 MB Notification: Performance of SimCode: time 1.042e-06/1.992, allocations: 0 / 0.77 GB, free: 131 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.006/4.999, allocations: 15.87 MB / 0.7855 GB, free: 126.1 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