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/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.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.464/2.464, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004455/0.0004456, allocations: 8 kB / 314.5 MB, free: 9.453 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3622, allocations: 54.86 MB / 369.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.932/8.294, allocations: 2.597 GB / 2.958 GB, free: 102.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/8.294, allocations: 89.77 kB / 2.958 GB, free: 102.3 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 3.362/11.66, allocations: 0.663 GB / 3.621 GB, free: 8.262 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.186e-06/11.66, allocations: 4 kB / 3.621 GB, free: 8.258 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001361/11.66, allocations: 23.94 kB / 3.621 GB, free: 8.234 MB / 0.4948 GB 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.01735/11.67, allocations: 2.273 MB / 3.623 GB, free: 5.91 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.197e-05/11.67, allocations: 8.031 kB / 3.623 GB, free: 5.902 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005931/11.68, allocations: 122.6 kB / 3.623 GB, free: 5.773 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0103/11.69, allocations: 0.5693 MB / 3.624 GB, free: 5.203 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002649/11.69, allocations: 0.7086 MB / 3.625 GB, free: 4.449 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001175/11.69, allocations: 65.98 kB / 3.625 GB, free: 4.387 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001932/11.69, allocations: 72 kB / 3.625 GB, free: 4.316 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005626/11.69, allocations: 1.363 MB / 3.626 GB, free: 2.863 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.527e-05/11.69, allocations: 4 kB / 3.626 GB, free: 2.859 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001642/11.69, allocations: 32 kB / 3.626 GB, free: 2.828 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.927e-05/11.69, allocations: 20 kB / 3.626 GB, free: 2.809 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005922/11.7, allocations: 1.24 MB / 3.627 GB, free: 1.562 MB / 0.4948 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.4111/12.11, allocations: 5.466 MB / 3.633 GB, free: 38.14 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004604/12.12, allocations: 0.8423 MB / 3.634 GB, free: 38.1 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2342/12.35, allocations: 60.2 MB / 3.692 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.205e-05/12.35, allocations: 42.22 kB / 3.692 GB, free: 25.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001179/12.35, allocations: 116.1 kB / 3.692 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=58): time 3.977e-06/12.35, allocations: 0 / 3.692 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of matching and sorting (n=58): time 0.008084/12.36, allocations: 1.586 MB / 3.694 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/12.36, allocations: 195.1 kB / 3.694 GB, free: 24.96 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008145/12.36, allocations: 481.2 kB / 3.695 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 9.522e-05/12.36, allocations: 42.89 kB / 3.695 GB, free: 24.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003421/12.36, allocations: 456.1 kB / 3.695 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002258/12.36, allocations: 204.2 kB / 3.695 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.322e-05/12.36, allocations: 11.31 kB / 3.695 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001581/12.36, allocations: 343.5 kB / 3.696 GB, free: 24.14 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009689/12.36, allocations: 233 kB / 3.696 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/12.36, allocations: 0.5421 MB / 3.696 GB, free: 23.73 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/12.37, allocations: 301.2 kB / 3.697 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.148e-06/12.37, allocations: 3.406 kB / 3.697 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002857/12.37, allocations: 0.8494 MB / 3.698 GB, free: 23.63 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001429/12.37, allocations: 3.842 MB / 3.701 GB, free: 19.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.343e-05/12.37, allocations: 11.16 kB / 3.701 GB, free: 19.61 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005593/12.38, allocations: 390 kB / 3.702 GB, free: 19.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001408/12.38, allocations: 196.8 kB / 3.702 GB, free: 19.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/12.38, allocations: 1.138 MB / 3.703 GB, free: 18.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/12.38, allocations: 64.05 kB / 3.703 GB, free: 18.53 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/12.38, allocations: 49.44 kB / 3.703 GB, free: 18.53 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/12.38, allocations: 3.125 kB / 3.703 GB, free: 18.53 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002558/12.38, allocations: 0.7457 MB / 3.704 GB, free: 18.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/12.38, allocations: 13.78 kB / 3.704 GB, free: 18.51 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.191e-05/12.38, allocations: 21.09 kB / 3.704 GB, free: 18.51 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001366/12.38, allocations: 211.1 kB / 3.704 GB, free: 18.51 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.352e-05/12.38, allocations: 23.91 kB / 3.704 GB, free: 18.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008781/12.38, allocations: 69.59 kB / 3.704 GB, free: 18.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.289e-05/12.38, allocations: 49.27 kB / 3.704 GB, free: 18.5 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 (boundary_fixed1.medium.phase,boundary_fixed.medium.phase,massFlowRate1.medium.phase,massFlowRate2.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete states: 0 () * Number of clocked 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.0006813/12.38, allocations: 312.5 kB / 3.704 GB, free: 18.31 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002131/12.39, allocations: 69.62 kB / 3.705 GB, free: 18.27 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006173/12.39, allocations: 3.561 MB / 3.708 GB, free: 17.89 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.329e-05/12.39, allocations: 49.86 kB / 3.708 GB, free: 17.89 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/12.39, allocations: 4 kB / 3.708 GB, free: 17.88 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.608e-05/12.39, allocations: 8.375 kB / 3.708 GB, free: 17.88 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002714/12.39, allocations: 1.698 MB / 3.71 GB, free: 17.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/12.39, allocations: 0 / 3.71 GB, free: 17.62 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009674/12.4, allocations: 125.6 kB / 3.71 GB, free: 17.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003166/12.4, allocations: 0.7757 MB / 3.711 GB, free: 17.58 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.901e-05/12.4, allocations: 20.56 kB / 3.711 GB, free: 17.58 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002053/12.4, allocations: 1.532 MB / 3.712 GB, free: 32.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/12.4, allocations: 4.125 kB / 3.712 GB, free: 32.53 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003716/12.4, allocations: 2.053 MB / 3.714 GB, free: 32.07 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000692/12.41, allocations: 414.5 kB / 3.715 GB, free: 31.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/12.41, allocations: 21.55 kB / 3.715 GB, free: 31.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008989/12.41, allocations: 57.67 kB / 3.715 GB, free: 31.88 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/12.41, allocations: 58.55 kB / 3.715 GB, free: 31.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.148e-05/12.41, allocations: 23.97 kB / 3.715 GB, free: 31.88 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0009385/12.41, allocations: 0.5299 MB / 3.715 GB, free: 31.76 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.61e-07/12.41, allocations: 0 / 3.715 GB, free: 31.76 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006486/12.41, allocations: 1.326 MB / 3.717 GB, free: 31.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 28 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,massFlowRate2.medium.phase,boundary_fixed1.medium.phase,$cse13.phase,$cse13.region,$cse17.phase,$cse17.region,$cse20.phase,$cse20.region,$cse22.region3boundary,$cse23.region3boundary,$cse24.phase,$cse24.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,massFlowRate1.medium.phase,boundary_fixed.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.01377/12.43, allocations: 4.157 MB / 3.721 GB, free: 30.44 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004552/12.43, allocations: 1.407 MB / 3.722 GB, free: 30.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.605e-06/12.43, allocations: 3.469 kB / 3.722 GB, free: 30.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001755/12.43, allocations: 0.8216 MB / 3.723 GB, free: 30.39 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003063/12.44, allocations: 351.9 kB / 3.723 GB, free: 30.36 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.895/14.33, allocations: 435.2 MB / 4.148 GB, free: 72.76 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008339/14.33, allocations: 1.284 MB / 4.149 GB, free: 72.03 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008861/14.33, allocations: 0.5495 MB / 4.15 GB, free: 72.02 MB / 0.5417 GB Notification: Performance of SimCode: time 1.453e-06/14.33, allocations: 2.844 kB / 4.15 GB, free: 72.02 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.897/18.23, allocations: 50.15 MB / 4.199 GB, free: 47.7 MB / 0.5417 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