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.TestFlowRate.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.TestFlowRate,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.503/2.503, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006224/0.0006224, allocations: 8 kB / 314.5 MB, free: 9.457 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.3637, allocations: 54.85 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.919/8.283, allocations: 2.596 GB / 2.957 GB, free: 118.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003174/8.283, allocations: 90.91 kB / 2.957 GB, free: 118.7 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 .... Notification: Performance of FrontEnd - DAE generated: time 2.074/10.36, allocations: 400.3 MB / 3.348 GB, free: 64.6 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.434e-06/10.36, allocations: 2.812 kB / 3.348 GB, free: 64.6 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.277e-05/10.36, allocations: 10.84 kB / 3.348 GB, free: 64.59 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.006981/10.36, allocations: 1.595 MB / 3.349 GB, free: 63.72 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/10.36, allocations: 10.62 kB / 3.349 GB, free: 63.72 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002203/10.36, allocations: 80.81 kB / 3.35 GB, free: 63.66 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003096/10.37, allocations: 291.5 kB / 3.35 GB, free: 63.61 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/10.37, allocations: 475 kB / 3.35 GB, free: 63.28 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.077e-05/10.37, allocations: 35.53 kB / 3.35 GB, free: 63.27 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.289e-05/10.37, allocations: 36.88 kB / 3.35 GB, free: 63.26 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002324/10.37, allocations: 0.685 MB / 3.351 GB, free: 62.95 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/10.37, allocations: 3.938 kB / 3.351 GB, free: 62.95 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.283e-05/10.37, allocations: 19.91 kB / 3.351 GB, free: 62.93 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/10.37, allocations: 11.84 kB / 3.351 GB, free: 62.93 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002464/10.37, allocations: 0.6079 MB / 3.352 GB, free: 62.78 MB / 490.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.00429/10.38, allocations: 2.875 MB / 3.354 GB, free: 60.46 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00205/10.38, allocations: 460.6 kB / 3.355 GB, free: 60.34 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3482/10.73, allocations: 95.81 MB / 3.448 GB, free: 7.066 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.39e-05/10.73, allocations: 34.56 kB / 3.448 GB, free: 7.023 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=30): time 3.237e-06/10.73, allocations: 0 / 3.448 GB, free: 7.023 MB / 0.4948 GB Notification: Performance of matching and sorting (n=30): time 0.004401/10.73, allocations: 0.903 MB / 3.449 GB, free: 6.266 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.943e-05/10.73, allocations: 110.8 kB / 3.449 GB, free: 6.133 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005028/10.73, allocations: 303.6 kB / 3.45 GB, free: 5.871 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.855e-05/10.73, allocations: 33.7 kB / 3.45 GB, free: 5.832 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001969/10.73, allocations: 313.1 kB / 3.45 GB, free: 5.539 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/10.73, allocations: 100.9 kB / 3.45 GB, free: 5.449 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.223e-05/10.73, allocations: 12 kB / 3.45 GB, free: 5.438 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001294/10.73, allocations: 326.6 kB / 3.451 GB, free: 5.113 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005339/10.74, allocations: 131.8 kB / 3.451 GB, free: 5.008 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006497/10.74, allocations: 291.1 kB / 3.451 GB, free: 4.684 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006563/10.74, allocations: 166.6 kB / 3.451 GB, free: 4.535 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/10.74, allocations: 3.891 kB / 3.451 GB, free: 4.535 MB / 0.4948 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001777/10.74, allocations: 481.7 kB / 3.452 GB, free: 4.105 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007646/10.74, allocations: 1.738 MB / 3.453 GB, free: 2.234 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/10.74, allocations: 4 kB / 3.453 GB, free: 2.23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003081/10.74, allocations: 202.3 kB / 3.453 GB, free: 2.086 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007552/10.74, allocations: 109.7 kB / 3.454 GB, free: 1.996 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007598/10.74, allocations: 0.5895 MB / 3.454 GB, free: 1.398 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007844/10.74, allocations: 62.88 kB / 3.454 GB, free: 1.344 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.799e-05/10.74, allocations: 23.84 kB / 3.454 GB, free: 1.324 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.457e-05/10.74, allocations: 4 kB / 3.454 GB, free: 1.32 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001596/10.75, allocations: 402.8 kB / 3.455 GB, free: 0.9727 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/10.75, allocations: 4 kB / 3.455 GB, free: 0.9688 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/10.75, allocations: 8.562 kB / 3.455 GB, free: 0.9609 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007487/10.75, allocations: 116.9 kB / 3.455 GB, free: 0.8633 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.633e-05/10.75, allocations: 8 kB / 3.455 GB, free: 0.8555 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005406/10.75, allocations: 54.72 kB / 3.455 GB, free: 0.8086 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.907e-05/10.75, allocations: 20 kB / 3.455 GB, free: 0.7891 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (boundary_fixed.medium.phase,massFlowRate1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000525/10.75, allocations: 256.1 kB / 3.455 GB, free: 0.5312 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001781/10.75, allocations: 39.53 kB / 3.455 GB, free: 0.4922 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.416/11.16, allocations: 2.033 MB / 3.457 GB, free: 81.14 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.991e-05/11.16, allocations: 28.36 kB / 3.457 GB, free: 81.14 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/11.16, allocations: 4.609 kB / 3.457 GB, free: 81.14 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/11.16, allocations: 1.781 kB / 3.457 GB, free: 81.14 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001844/11.17, allocations: 0.9916 MB / 3.458 GB, free: 80.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/11.17, allocations: 0 / 3.458 GB, free: 80.95 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00057/11.17, allocations: 71.2 kB / 3.458 GB, free: 80.95 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002222/11.17, allocations: 0.5796 MB / 3.459 GB, free: 80.91 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.973e-05/11.17, allocations: 9.844 kB / 3.459 GB, free: 80.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001113/11.17, allocations: 0.9962 MB / 3.46 GB, free: 80.39 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/11.17, allocations: 1.031 kB / 3.46 GB, free: 80.39 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002514/11.17, allocations: 1.29 MB / 3.461 GB, free: 80.16 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004017/11.17, allocations: 246.6 kB / 3.461 GB, free: 80.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/11.17, allocations: 9.984 kB / 3.461 GB, free: 80.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000502/11.17, allocations: 34.7 kB / 3.461 GB, free: 80.02 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/11.17, allocations: 28.27 kB / 3.461 GB, free: 80.02 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.956e-05/11.17, allocations: 11.91 kB / 3.461 GB, free: 80.02 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.000584/11.18, allocations: 308.1 kB / 3.462 GB, free: 79.93 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.403e-06/11.18, allocations: 0 / 3.462 GB, free: 79.93 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006002/11.18, allocations: 1.206 MB / 3.463 GB, free: 79.92 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.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 (34): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.01268/11.19, allocations: 3.169 MB / 3.466 GB, free: 79.14 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002567/11.2, allocations: 0.7837 MB / 3.467 GB, free: 79.12 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/11.2, allocations: 0 / 3.467 GB, free: 79.12 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009827/11.2, allocations: 484 kB / 3.467 GB, free: 79.12 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001864/11.2, allocations: 203.9 kB / 3.467 GB, free: 79.12 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4513/11.65, allocations: 157.6 MB / 3.621 GB, free: 24.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004972/11.65, allocations: 0.996 MB / 3.622 GB, free: 23.49 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005214/11.65, allocations: 284.5 kB / 3.622 GB, free: 23.23 MB / 0.4948 GB Notification: Performance of SimCode: time 2.555e-06/11.65, allocations: 1.219 kB / 3.622 GB, free: 23.23 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.101/15.75, allocations: 34.26 MB / 3.656 GB, free: 67.4 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat does not exist to compare? outputFormat=mat