Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.966/1.966, allocations: 209.2 MB / 224.8 MB, free: 300 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006067/0.0006069, allocations: 12 kB / 282.7 MB, free: 9.496 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3665/0.3671, allocations: 48.7 MB / 331.4 MB, free: 6.379 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.973/7.34, allocations: 2.486 GB / 2.81 GB, free: 36.36 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003196/7.341, allocations: 82.83 kB / 2.81 GB, free: 36.32 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.541/10.88, allocations: 0.6455 GB / 3.456 GB, free: 38.96 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.723e-06/10.88, allocations: 0 / 3.456 GB, free: 38.96 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.619e-05/10.88, allocations: 22.09 kB / 3.456 GB, free: 38.96 MB / 458.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.009151/10.89, allocations: 2.198 MB / 3.458 GB, free: 37.87 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/10.89, allocations: 13.09 kB / 3.458 GB, free: 37.87 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003521/10.89, allocations: 124.6 kB / 3.458 GB, free: 37.83 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007035/10.9, allocations: 0.5291 MB / 3.458 GB, free: 37.78 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002224/10.9, allocations: 0.7062 MB / 3.459 GB, free: 37.51 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.786e-05/10.9, allocations: 65.09 kB / 3.459 GB, free: 37.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001688/10.9, allocations: 72.28 kB / 3.459 GB, free: 37.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004891/10.91, allocations: 1.367 MB / 3.461 GB, free: 37.21 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.422e-05/10.91, allocations: 5.312 kB / 3.461 GB, free: 37.21 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001429/10.91, allocations: 39.11 kB / 3.461 GB, free: 37.21 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.342e-05/10.91, allocations: 19.09 kB / 3.461 GB, free: 37.21 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00518/10.91, allocations: 1.245 MB / 3.462 GB, free: 37.21 MB / 458.7 MB 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.008867/10.92, allocations: 5.464 MB / 3.467 GB, free: 33.61 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004155/10.92, allocations: 0.8522 MB / 3.468 GB, free: 33.56 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2281/11.15, allocations: 60.13 MB / 3.527 GB, free: 18.12 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.812e-05/11.15, allocations: 41.44 kB / 3.527 GB, free: 18.08 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001157/11.15, allocations: 118.9 kB / 3.527 GB, free: 17.99 MB / 474.7 MB Notification: Performance of pre-optimization done (n=58): time 3.156e-06/11.15, allocations: 4 kB / 3.527 GB, free: 17.99 MB / 474.7 MB Notification: Performance of matching and sorting (n=58): time 0.007757/11.16, allocations: 1.585 MB / 3.528 GB, free: 16.96 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/11.16, allocations: 189.5 kB / 3.529 GB, free: 16.73 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000774/11.16, allocations: 482.5 kB / 3.529 GB, free: 16.42 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 8.275e-05/11.16, allocations: 37.33 kB / 3.529 GB, free: 16.38 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003203/11.16, allocations: 465.2 kB / 3.53 GB, free: 16.05 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000189/11.16, allocations: 207.6 kB / 3.53 GB, free: 15.89 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.807e-05/11.16, allocations: 10.75 kB / 3.53 GB, free: 15.89 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001509/11.16, allocations: 340.8 kB / 3.53 GB, free: 15.57 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009423/11.16, allocations: 230 kB / 3.53 GB, free: 15.45 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001137/11.17, allocations: 0.5398 MB / 3.531 GB, free: 14.91 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001091/11.17, allocations: 301.6 kB / 3.531 GB, free: 14.75 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.069e-05/11.17, allocations: 4 kB / 3.531 GB, free: 14.74 MB / 474.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002831/11.17, allocations: 0.8459 MB / 3.532 GB, free: 14.19 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001697/11.17, allocations: 3.844 MB / 3.536 GB, free: 10.13 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.259e-05/11.17, allocations: 8 kB / 3.536 GB, free: 10.12 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005472/11.18, allocations: 382.4 kB / 3.536 GB, free: 9.867 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/11.18, allocations: 196.8 kB / 3.536 GB, free: 9.711 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001154/11.18, allocations: 1.138 MB / 3.537 GB, free: 8.586 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001162/11.18, allocations: 63.69 kB / 3.537 GB, free: 8.547 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/11.18, allocations: 53.86 kB / 3.538 GB, free: 8.512 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/11.18, allocations: 4 kB / 3.538 GB, free: 8.508 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002522/11.18, allocations: 0.7487 MB / 3.538 GB, free: 8.043 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/11.18, allocations: 12 kB / 3.538 GB, free: 8.031 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/11.18, allocations: 16 kB / 3.538 GB, free: 8.016 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/11.18, allocations: 220.7 kB / 3.538 GB, free: 7.848 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.161e-05/11.18, allocations: 29.09 kB / 3.539 GB, free: 7.824 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008323/11.19, allocations: 58.94 kB / 3.539 GB, free: 7.785 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-05/11.19, allocations: 58.14 kB / 3.539 GB, free: 7.746 MB / 474.7 MB 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.0006421/11.19, allocations: 311.5 kB / 3.539 GB, free: 7.492 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002062/11.19, allocations: 71.16 kB / 3.539 GB, free: 7.422 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006082/11.19, allocations: 3.565 MB / 3.542 GB, free: 5.125 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-05/11.19, allocations: 47.2 kB / 3.543 GB, free: 5.102 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/11.19, allocations: 4 kB / 3.543 GB, free: 5.098 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.496e-05/11.19, allocations: 3.797 kB / 3.543 GB, free: 5.098 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002588/11.2, allocations: 1.697 MB / 3.544 GB, free: 3.617 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/11.2, allocations: 0 / 3.544 GB, free: 3.617 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009631/11.2, allocations: 129.8 kB / 3.544 GB, free: 3.516 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003156/11.2, allocations: 0.7686 MB / 3.545 GB, free: 2.867 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.213e-05/11.2, allocations: 27.59 kB / 3.545 GB, free: 2.844 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3976/11.6, allocations: 1.531 MB / 3.547 GB, free: 54.45 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/11.6, allocations: 1.25 kB / 3.547 GB, free: 54.45 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01044/11.62, allocations: 2.06 MB / 3.549 GB, free: 54.09 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001178/11.62, allocations: 411.5 kB / 3.549 GB, free: 53.97 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003032/11.62, allocations: 16.78 kB / 3.549 GB, free: 53.97 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005124/11.62, allocations: 59.03 kB / 3.549 GB, free: 53.97 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002563/11.62, allocations: 59.52 kB / 3.549 GB, free: 53.97 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/11.62, allocations: 18.47 kB / 3.549 GB, free: 53.97 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00141/11.62, allocations: 0.5371 MB / 3.55 GB, free: 53.86 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.21e-07/11.62, allocations: 0 / 3.55 GB, free: 53.86 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01195/11.64, allocations: 1.313 MB / 3.551 GB, free: 53.84 MB / 474.7 MB 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.01976/11.66, allocations: 4.154 MB / 3.555 GB, free: 52.76 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006714/11.66, allocations: 1.402 MB / 3.556 GB, free: 52.73 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-05/11.66, allocations: 4.938 kB / 3.556 GB, free: 52.73 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002901/11.67, allocations: 0.8335 MB / 3.557 GB, free: 52.72 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004683/11.67, allocations: 351 kB / 3.558 GB, free: 52.71 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.942/13.61, allocations: 426.3 MB / 3.974 GB, free: 41.58 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008794/13.61, allocations: 1.292 MB / 3.975 GB, free: 40.85 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009276/13.61, allocations: 0.5503 MB / 3.976 GB, free: 40.84 MB / 474.7 MB Notification: Performance of SimCode: time 1.813e-06/13.61, allocations: 3.5 kB / 3.976 GB, free: 40.84 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.071/17.69, allocations: 50.06 MB / 4.025 GB, free: 33.44 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat does not exist to compare? outputFormat=mat