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.48/2.48, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.752e-05/3.763e-05, allocations: 4 kB / 309.8 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4069/0.407, allocations: 54.85 MB / 364.6 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.331/8.738, allocations: 2.597 GB / 2.953 GB, free: 111.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003134/8.738, allocations: 82.45 kB / 2.953 GB, free: 111.1 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.403/12.14, allocations: 0.6611 GB / 3.614 GB, free: 46.29 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.587e-06/12.14, allocations: 0 / 3.614 GB, free: 46.29 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001314/12.14, allocations: 27.52 kB / 3.614 GB, free: 46.29 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.01351/12.15, allocations: 2.186 MB / 3.617 GB, free: 45.16 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.917e-05/12.15, allocations: 10.56 kB / 3.617 GB, free: 45.16 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004779/12.16, allocations: 119 kB / 3.617 GB, free: 45.12 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01265/12.17, allocations: 0.5746 MB / 3.617 GB, free: 45.07 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003448/12.17, allocations: 0.7033 MB / 3.618 GB, free: 44.78 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/12.17, allocations: 67.12 kB / 3.618 GB, free: 44.78 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002662/12.17, allocations: 71.12 kB / 3.618 GB, free: 44.78 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007556/12.18, allocations: 1.352 MB / 3.619 GB, free: 44.49 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.76e-05/12.18, allocations: 3.594 kB / 3.619 GB, free: 44.49 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002212/12.18, allocations: 35.59 kB / 3.619 GB, free: 44.49 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.472e-05/12.18, allocations: 22.97 kB / 3.619 GB, free: 44.49 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007068/12.19, allocations: 1.152 MB / 3.621 GB, free: 44.46 MB / 0.4948 GB 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.0141/12.2, allocations: 5.466 MB / 3.626 GB, free: 40.82 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003481/12.2, allocations: 0.8658 MB / 3.627 GB, free: 40.77 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006489/12.21, allocations: 256.6 kB / 3.627 GB, free: 40.75 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2396/12.44, allocations: 60.56 MB / 3.686 GB, free: 17.69 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.81e-05/12.44, allocations: 42.38 kB / 3.686 GB, free: 17.64 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001162/12.45, allocations: 118 kB / 3.686 GB, free: 17.55 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=58): time 5.09e-06/12.45, allocations: 4 kB / 3.686 GB, free: 17.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=58): time 0.00602/12.45, allocations: 1.253 MB / 3.687 GB, free: 16.57 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/12.45, allocations: 187.9 kB / 3.688 GB, free: 16.35 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000841/12.45, allocations: 473.9 kB / 3.688 GB, free: 15.92 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001254/12.45, allocations: 37.7 kB / 3.688 GB, free: 15.88 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002979/12.45, allocations: 462.3 kB / 3.689 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002021/12.45, allocations: 199.9 kB / 3.689 GB, free: 15.27 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.878e-05/12.45, allocations: 16 kB / 3.689 GB, free: 15.26 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001439/12.45, allocations: 350 kB / 3.689 GB, free: 14.92 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005249/12.45, allocations: 193.1 kB / 3.689 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006876/12.46, allocations: 0.507 MB / 3.69 GB, free: 14.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006581/12.46, allocations: 265.2 kB / 3.69 GB, free: 13.87 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/12.46, allocations: 4 kB / 3.69 GB, free: 13.87 MB / 0.5105 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002065/12.46, allocations: 0.7754 MB / 3.691 GB, free: 13.15 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001445/12.46, allocations: 3.824 MB / 3.695 GB, free: 9.039 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.174e-05/12.46, allocations: 16 kB / 3.695 GB, free: 9.023 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005769/12.47, allocations: 377.1 kB / 3.695 GB, free: 8.758 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/12.47, allocations: 205.8 kB / 3.695 GB, free: 8.586 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001214/12.47, allocations: 1.131 MB / 3.696 GB, free: 7.426 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/12.47, allocations: 66.75 kB / 3.696 GB, free: 7.375 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001407/12.47, allocations: 51.27 kB / 3.696 GB, free: 7.332 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/12.47, allocations: 4 kB / 3.696 GB, free: 7.328 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001755/12.47, allocations: 0.697 MB / 3.697 GB, free: 6.703 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/12.47, allocations: 12 kB / 3.697 GB, free: 6.691 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/12.47, allocations: 12 kB / 3.697 GB, free: 6.68 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00152/12.47, allocations: 222.3 kB / 3.697 GB, free: 6.492 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.243e-05/12.47, allocations: 23.69 kB / 3.697 GB, free: 6.473 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/12.47, allocations: 62.41 kB / 3.697 GB, free: 6.422 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/12.47, allocations: 47.61 kB / 3.697 GB, free: 6.379 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 () * 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.0003654/12.48, allocations: 160.6 kB / 3.698 GB, free: 6.215 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003166/12.48, allocations: 71.16 kB / 3.698 GB, free: 6.145 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006865/12.48, allocations: 3.598 MB / 3.701 GB, free: 2.926 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-05/12.48, allocations: 47.17 kB / 3.701 GB, free: 2.898 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/12.48, allocations: 0 / 3.701 GB, free: 2.898 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.483e-05/12.48, allocations: 3.797 kB / 3.701 GB, free: 2.898 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003708/12.49, allocations: 1.707 MB / 3.703 GB, free: 1.402 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-05/12.49, allocations: 0 / 3.703 GB, free: 1.402 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/12.49, allocations: 124.1 kB / 3.703 GB, free: 1.305 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003877/12.49, allocations: 0.8985 MB / 3.704 GB, free: 0.5742 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001762/12.49, allocations: 19.88 kB / 3.704 GB, free: 0.5586 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4094/12.9, allocations: 1.526 MB / 3.705 GB, free: 61.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/12.9, allocations: 0 / 3.705 GB, free: 61.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003589/12.9, allocations: 1.987 MB / 3.707 GB, free: 61.03 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008844/12.91, allocations: 415 kB / 3.708 GB, free: 60.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001932/12.91, allocations: 16.3 kB / 3.708 GB, free: 60.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009835/12.91, allocations: 51.98 kB / 3.708 GB, free: 60.91 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/12.91, allocations: 63 kB / 3.708 GB, free: 60.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.831e-05/12.91, allocations: 24.92 kB / 3.708 GB, free: 60.91 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001077/12.91, allocations: 0.5218 MB / 3.708 GB, free: 60.79 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.62e-07/12.91, allocations: 0 / 3.708 GB, free: 60.79 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007063/12.92, allocations: 1.326 MB / 3.71 GB, free: 60.77 MB / 0.5105 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 () * 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.01376/12.93, allocations: 4.077 MB / 3.714 GB, free: 59.69 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003782/12.93, allocations: 1.294 MB / 3.715 GB, free: 59.66 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/12.93, allocations: 1.75 kB / 3.715 GB, free: 59.66 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001694/12.93, allocations: 0.7949 MB / 3.716 GB, free: 59.65 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003556/12.94, allocations: 350.5 kB / 3.716 GB, free: 59.64 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.947/14.89, allocations: 424 MB / 4.13 GB, free: 76.08 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009407/14.89, allocations: 1.29 MB / 4.131 GB, free: 75.36 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009903/14.89, allocations: 0.551 MB / 4.132 GB, free: 75.35 MB / 0.5261 GB Notification: Performance of SimCode: time 9.92e-07/14.89, allocations: 3.75 kB / 4.132 GB, free: 75.35 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.166/19.05, allocations: 51.45 MB / 4.182 GB, free: 72.29 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