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.Sensors.TestDensity.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.Sensors.TestDensity,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.585/2.585, allocations: 235.1 MB / 243 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.716e-05/2.683e-05, allocations: 4 kB / 303.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3428, allocations: 54.85 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.967/8.309, allocations: 2.596 GB / 2.946 GB, free: 118.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/8.31, allocations: 84.52 kB / 2.946 GB, free: 118.9 MB / 490.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 3.309/11.62, allocations: 0.6551 GB / 3.601 GB, free: 37.22 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.224e-06/11.62, allocations: 0 / 3.601 GB, free: 37.22 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.876e-05/11.62, allocations: 20.06 kB / 3.601 GB, free: 37.21 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.00975/11.63, allocations: 2.185 MB / 3.604 GB, free: 35.91 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/11.63, allocations: 10.94 kB / 3.604 GB, free: 35.91 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007325/11.64, allocations: 0.5735 MB / 3.604 GB, free: 35.82 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002288/11.64, allocations: 0.7045 MB / 3.605 GB, free: 35.38 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.587e-05/11.64, allocations: 34.78 kB / 3.605 GB, free: 35.38 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001697/11.64, allocations: 46.92 kB / 3.605 GB, free: 35.38 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001924/11.64, allocations: 0.7339 MB / 3.606 GB, free: 35.11 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001918/11.64, allocations: 0.9134 MB / 3.607 GB, free: 34.6 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.993e-05/11.64, allocations: 7.906 kB / 3.607 GB, free: 34.59 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001252/11.64, allocations: 0 / 3.607 GB, free: 34.59 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.387e-05/11.64, allocations: 23.09 kB / 3.607 GB, free: 34.59 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8566/12.5, allocations: 109.8 MB / 3.714 GB, free: 35.63 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001572/12.5, allocations: 0.4941 MB / 3.714 GB, free: 35.58 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004779/12.5, allocations: 213.7 kB / 3.714 GB, free: 35.57 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09855/12.6, allocations: 29.14 MB / 3.743 GB, free: 34.69 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.775e-05/12.6, allocations: 37.94 kB / 3.743 GB, free: 34.65 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001091/12.6, allocations: 106.6 kB / 3.743 GB, free: 34.64 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=46): time 4.619e-06/12.6, allocations: 0 / 3.743 GB, free: 34.64 MB / 0.5105 GB Notification: Performance of matching and sorting (n=46): time 0.006049/12.61, allocations: 1.05 MB / 3.744 GB, free: 34.57 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001407/12.61, allocations: 194.9 kB / 3.744 GB, free: 34.35 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008494/12.61, allocations: 466.3 kB / 3.745 GB, free: 34.22 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001056/12.61, allocations: 25.7 kB / 3.745 GB, free: 34.19 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003889/12.61, allocations: 0.4938 MB / 3.745 GB, free: 33.91 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001805/12.61, allocations: 158.2 kB / 3.745 GB, free: 33.83 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.483e-05/12.61, allocations: 0 / 3.745 GB, free: 33.83 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001812/12.61, allocations: 339.5 kB / 3.746 GB, free: 33.52 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004475/12.61, allocations: 179.7 kB / 3.746 GB, free: 33.52 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006153/12.61, allocations: 499.1 kB / 3.746 GB, free: 33.12 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003163/12.61, allocations: 480.2 kB / 3.747 GB, free: 33.11 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.367e-05/12.61, allocations: 3.875 kB / 3.747 GB, free: 33.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004436/12.62, allocations: 0.9135 MB / 3.748 GB, free: 33.03 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001727/12.62, allocations: 3.834 MB / 3.751 GB, free: 29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.682e-05/12.62, allocations: 11.62 kB / 3.751 GB, free: 29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004067/12.62, allocations: 75.14 kB / 3.751 GB, free: 28.99 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001442/12.62, allocations: 202.3 kB / 3.752 GB, free: 28.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002391/12.62, allocations: 1.244 MB / 3.753 GB, free: 27.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001523/12.63, allocations: 55.98 kB / 3.753 GB, free: 27.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001561/12.63, allocations: 52.8 kB / 3.753 GB, free: 27.93 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/12.63, allocations: 7 kB / 3.753 GB, free: 27.93 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003059/12.63, allocations: 0.7037 MB / 3.754 GB, free: 27.92 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/12.63, allocations: 10.31 kB / 3.754 GB, free: 27.92 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/12.63, allocations: 16.94 kB / 3.754 GB, free: 27.92 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/12.63, allocations: 216.2 kB / 3.754 GB, free: 27.92 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.054e-05/12.63, allocations: 18.28 kB / 3.754 GB, free: 27.92 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/12.63, allocations: 55.55 kB / 3.754 GB, free: 27.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/12.63, allocations: 48.2 kB / 3.754 GB, free: 27.91 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 8 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,massFlowRate2.medium.phase,boundary_fixed1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 94 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000358/12.63, allocations: 145.1 kB / 3.754 GB, free: 27.79 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003707/12.64, allocations: 0.6583 MB / 3.755 GB, free: 27.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002071/12.64, allocations: 72.23 kB / 3.755 GB, free: 27.66 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005911/12.64, allocations: 2.801 MB / 3.758 GB, free: 27.36 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.893e-05/12.64, allocations: 41.52 kB / 3.758 GB, free: 27.36 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/12.64, allocations: 0 / 3.758 GB, free: 27.36 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.511e-05/12.64, allocations: 3.422 kB / 3.758 GB, free: 27.36 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007834/12.65, allocations: 3.706 MB / 3.761 GB, free: 26.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.365e-05/12.65, allocations: 0 / 3.761 GB, free: 26.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008418/12.65, allocations: 97.48 kB / 3.761 GB, free: 26.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001073/12.65, allocations: 0.7165 MB / 3.762 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.95e-05/12.65, allocations: 15.33 kB / 3.762 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002327/12.66, allocations: 1.652 MB / 3.764 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/12.66, allocations: 3.344 kB / 3.764 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004023/12.66, allocations: 1.918 MB / 3.766 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006618/12.66, allocations: 299.9 kB / 3.766 GB, free: 25.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001734/12.66, allocations: 4 kB / 3.766 GB, free: 25.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000909/12.66, allocations: 34.36 kB / 3.766 GB, free: 25.08 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/12.66, allocations: 59.12 kB / 3.766 GB, free: 25.08 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-05/12.66, allocations: 18.38 kB / 3.766 GB, free: 25.08 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0006759/12.66, allocations: 381.4 kB / 3.766 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.02e-07/12.66, allocations: 0 / 3.766 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006489/12.67, allocations: 1.238 MB / 3.768 GB, free: 24.89 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 22 ($cse9.phase,$cse9.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse17.region3boundary,$cse18.region3boundary,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,massFlowRate1.medium.phase,$cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,massFlowRate2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01419/12.68, allocations: 4.475 MB / 3.772 GB, free: 23.33 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00282/12.69, allocations: 1.147 MB / 3.773 GB, free: 23.31 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/12.69, allocations: 4.062 kB / 3.773 GB, free: 23.31 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001207/12.69, allocations: 0.6724 MB / 3.774 GB, free: 23.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002767/12.69, allocations: 283.1 kB / 3.774 GB, free: 23.28 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.034/13.72, allocations: 201.4 MB / 3.971 GB, free: 82.81 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008084/13.72, allocations: 1.182 MB / 3.972 GB, free: 82.09 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000947/13.73, allocations: 465.4 kB / 3.972 GB, free: 82.08 MB / 0.5261 GB Notification: Performance of SimCode: time 1.643e-06/13.73, allocations: 2.938 kB / 3.972 GB, free: 82.08 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.042/17.77, allocations: 47.97 MB / 4.019 GB, free: 55.99 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat does not exist to compare? outputFormat=mat