Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.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.TestExamplesVariants.InverseParameterization_turbulent,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_turbulent",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.368/2.368, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000446/0.000446, allocations: 12 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.377/0.3775, allocations: 54.85 MB / 369.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.216/8.594, allocations: 2.649 GB / 3.01 GB, free: 44.05 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003147/8.594, allocations: 84.28 kB / 3.01 GB, free: 44.01 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 4.137/12.73, allocations: 0.7457 GB / 3.755 GB, free: 42.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.805e-06/12.73, allocations: 4 kB / 3.755 GB, free: 42.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001478/12.73, allocations: 37.52 kB / 3.755 GB, free: 42.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: 287 * Number of variables: 287 Notification: Performance of Generate backend data structure: time 0.0166/12.75, allocations: 2.871 MB / 3.758 GB, free: 40.66 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/12.75, allocations: 13.41 kB / 3.758 GB, free: 40.66 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008371/12.75, allocations: 173.2 kB / 3.758 GB, free: 40.55 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006832/12.76, allocations: 0.5935 MB / 3.759 GB, free: 40.43 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003938/12.76, allocations: 1.098 MB / 3.76 GB, free: 39.82 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/12.76, allocations: 100.8 kB / 3.76 GB, free: 39.77 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004208/12.76, allocations: 105.3 kB / 3.76 GB, free: 39.74 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008722/12.77, allocations: 2.266 MB / 3.763 GB, free: 38.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.692e-05/12.77, allocations: 3.938 kB / 3.763 GB, free: 38.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000302/12.77, allocations: 50.48 kB / 3.763 GB, free: 38.77 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001707/12.77, allocations: 88.06 kB / 3.763 GB, free: 38.75 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009773/12.78, allocations: 2.387 MB / 3.765 GB, free: 38.02 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.01846/12.8, allocations: 8.914 MB / 3.774 GB, free: 31.33 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007164/12.8, allocations: 1.773 MB / 3.775 GB, free: 30.64 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0563/12.86, allocations: 18.77 MB / 3.794 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.861e-05/12.86, allocations: 47.56 kB / 3.794 GB, free: 12 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00206/12.86, allocations: 204.6 kB / 3.794 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=109): time 5.26e-06/12.86, allocations: 0 / 3.794 GB, free: 11.83 MB / 0.4948 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pump.medium.p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=159): time 0.1831/13.05, allocations: 16.24 MB / 3.81 GB, free: 12.26 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001713/13.05, allocations: 230.9 kB / 3.81 GB, free: 11.98 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00192/13.05, allocations: 0.7584 MB / 3.811 GB, free: 11.21 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007029/13.05, allocations: 49.7 kB / 3.811 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000656/13.05, allocations: 0.5932 MB / 3.811 GB, free: 10.56 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001241/13.05, allocations: 0.5287 MB / 3.812 GB, free: 10.04 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003428/13.05, allocations: 36 kB / 3.812 GB, free: 10 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002578/13.05, allocations: 374.8 kB / 3.812 GB, free: 9.625 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009296/13.06, allocations: 1.491 MB / 3.814 GB, free: 8.133 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01132/13.07, allocations: 1.94 MB / 3.816 GB, free: 6.008 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008715/13.08, allocations: 1.613 MB / 3.817 GB, free: 4.395 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.805e-05/13.08, allocations: 4 kB / 3.817 GB, free: 4.391 MB / 0.5105 GB Notification: Performance of matching and sorting (n=220) (initialization): time 0.4568/13.54, allocations: 4.668 MB / 3.822 GB, free: 57.41 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001223/13.54, allocations: 4.793 MB / 3.827 GB, free: 52.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.237e-05/13.54, allocations: 13.09 kB / 3.827 GB, free: 52.43 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.171/13.71, allocations: 8.322 MB / 3.835 GB, free: 52.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003069/13.71, allocations: 382.6 kB / 3.835 GB, free: 52.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02738/13.74, allocations: 5.076 MB / 3.84 GB, free: 51.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006358/13.75, allocations: 248.1 kB / 3.84 GB, free: 51.37 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008898/13.75, allocations: 127.4 kB / 3.84 GB, free: 51.37 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/13.75, allocations: 3.969 kB / 3.84 GB, free: 51.37 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02559/13.77, allocations: 4.514 MB / 3.845 GB, free: 51.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-05/13.77, allocations: 15.56 kB / 3.845 GB, free: 51.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01938/13.79, allocations: 2.907 MB / 3.848 GB, free: 51.32 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003776/13.8, allocations: 442.3 kB / 3.848 GB, free: 51.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02432/13.82, allocations: 4.441 MB / 3.852 GB, free: 50.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005715/13.83, allocations: 250.1 kB / 3.853 GB, free: 50.29 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006668/13.83, allocations: 124.6 kB / 3.853 GB, free: 50.29 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 12 (pipe2.flowModel.states[2].phase,pipe2.flowModel.states[1].phase,pipe1.flowModel.states[2].phase,pipe1.flowModel.states[1].phase,source.medium.phase,pump.heatTransfer.states[1].phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase,orifice.state_b.phase,orifice.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 164 * 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 {4 22,5 25} Notification: Performance of prepare postOptimizeDAE: time 0.001679/13.83, allocations: 491.1 kB / 3.853 GB, free: 50.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006378/13.83, allocations: 140.3 kB / 3.853 GB, free: 50.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04006/13.87, allocations: 9.506 MB / 3.863 GB, free: 49.71 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001014/13.87, allocations: 64.47 kB / 3.863 GB, free: 49.71 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/13.87, allocations: 2.906 kB / 3.863 GB, free: 49.71 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-05/13.87, allocations: 7.781 kB / 3.863 GB, free: 49.71 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0431/13.91, allocations: 12.42 MB / 3.875 GB, free: 48.92 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.746e-05/13.91, allocations: 0 / 3.875 GB, free: 48.92 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002242/13.92, allocations: 271.3 kB / 3.875 GB, free: 48.92 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1506/14.07, allocations: 8.9 MB / 3.884 GB, free: 48.82 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006741/14.07, allocations: 63.45 kB / 3.884 GB, free: 48.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02674/14.09, allocations: 5.918 MB / 3.89 GB, free: 47.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.168e-05/14.1, allocations: 6.156 kB / 3.89 GB, free: 47.73 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0361/14.13, allocations: 7.377 MB / 3.897 GB, free: 47.02 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002147/14.13, allocations: 0.6895 MB / 3.897 GB, free: 46.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005605/14.13, allocations: 37.88 kB / 3.898 GB, free: 46.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004979/14.14, allocations: 226.4 kB / 3.898 GB, free: 46.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005045/14.14, allocations: 131.7 kB / 3.898 GB, free: 46.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003049/14.14, allocations: 80.83 kB / 3.898 GB, free: 46.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001489/14.14, allocations: 0.7541 MB / 3.899 GB, free: 46.69 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.81e-07/14.14, allocations: 0 / 3.899 GB, free: 46.69 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01178/14.15, allocations: 2.256 MB / 3.901 GB, free: 46.68 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,source.medium.phase,pump.heatTransfer.states[1].phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 106 * 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 {4 22,6 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.04797/14.2, allocations: 10.37 MB / 3.911 GB, free: 44.75 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.04105/14.24, allocations: 6.733 MB / 3.918 GB, free: 44.67 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.448e-05/14.24, allocations: 0 / 3.918 GB, free: 44.67 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0165/14.26, allocations: 3.067 MB / 3.921 GB, free: 44.64 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005718/14.26, allocations: 0.5865 MB / 3.921 GB, free: 44.62 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8109/15.08, allocations: 138.3 MB / 4.056 GB, free: 57.35 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001337/15.08, allocations: 1.637 MB / 4.058 GB, free: 56.61 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001855/15.08, allocations: 0.8088 MB / 4.059 GB, free: 56.6 MB / 0.5261 GB Notification: Performance of SimCode: time 1.242e-06/15.08, allocations: 0 / 4.059 GB, free: 56.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.882/19.96, allocations: 80.23 MB / 4.137 GB, free: 51.79 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent_res.mat does not exist to compare? outputFormat=mat