Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.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.TestExamplesVariants.InverseParameterization_laminar,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_laminar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.992/1.992, allocations: 209.2 MB / 224.8 MB, free: 0.7578 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006838/0.0006837, allocations: 15.98 kB / 282.7 MB, free: 9.566 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.11, allocations: 48.7 MB / 331.4 MB, free: 8.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.127/8.237, allocations: 2.538 GB / 2.862 GB, free: 98.27 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000332/8.237, allocations: 82.91 kB / 2.862 GB, free: 98.26 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 .... Notification: Performance of FrontEnd - DAE generated: time 3.775/12.01, allocations: 0.7263 GB / 3.588 GB, free: 31.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.954e-06/12.01, allocations: 0 / 3.588 GB, free: 31.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001877/12.01, allocations: 38.81 kB / 3.588 GB, free: 31.4 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: 287 * Number of variables: 287 Notification: Performance of Generate backend data structure: time 0.01586/12.03, allocations: 2.772 MB / 3.591 GB, free: 30 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/12.03, allocations: 9.906 kB / 3.591 GB, free: 30 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008321/12.03, allocations: 174.6 kB / 3.591 GB, free: 29.96 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006655/12.04, allocations: 0.5832 MB / 3.592 GB, free: 29.88 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00391/12.04, allocations: 1.092 MB / 3.593 GB, free: 29.55 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/12.04, allocations: 90.25 kB / 3.593 GB, free: 29.55 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003668/12.04, allocations: 105.3 kB / 3.593 GB, free: 29.55 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008274/12.05, allocations: 2.277 MB / 3.595 GB, free: 29.2 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.789e-05/12.05, allocations: 7 kB / 3.595 GB, free: 29.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002893/12.05, allocations: 47.56 kB / 3.595 GB, free: 29.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001598/12.05, allocations: 90.27 kB / 3.595 GB, free: 29.19 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009416/12.06, allocations: 2.386 MB / 3.598 GB, free: 29.17 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.01681/12.08, allocations: 8.922 MB / 3.606 GB, free: 24.06 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007068/12.08, allocations: 1.774 MB / 3.608 GB, free: 24.03 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05487/12.14, allocations: 18.74 MB / 3.626 GB, free: 12.16 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.482e-05/12.14, allocations: 52.19 kB / 3.626 GB, free: 12.12 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001828/12.14, allocations: 202 kB / 3.627 GB, free: 12.06 MB / 458.7 MB Notification: Performance of pre-optimization done (n=109): time 4.358e-06/12.14, allocations: 0 / 3.627 GB, free: 12.06 MB / 458.7 MB 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.1866/12.33, allocations: 16.22 MB / 3.643 GB, free: 26.61 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001613/12.33, allocations: 229 kB / 3.643 GB, free: 26.36 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001572/12.33, allocations: 0.7499 MB / 3.643 GB, free: 26.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007291/12.33, allocations: 55.73 kB / 3.644 GB, free: 26.17 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004721/12.33, allocations: 0.5979 MB / 3.644 GB, free: 25.82 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009724/12.33, allocations: 0.5315 MB / 3.645 GB, free: 25.48 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003358/12.33, allocations: 34.03 kB / 3.645 GB, free: 25.48 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002197/12.33, allocations: 382.3 kB / 3.645 GB, free: 25.16 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007331/12.34, allocations: 1.486 MB / 3.646 GB, free: 25.14 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00786/12.35, allocations: 1.941 MB / 3.648 GB, free: 24.63 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008108/12.35, allocations: 1.614 MB / 3.65 GB, free: 24.59 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.937e-05/12.35, allocations: 3.594 kB / 3.65 GB, free: 24.59 MB / 474.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.02485/12.38, allocations: 4.675 MB / 3.655 GB, free: 24.43 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002297/12.38, allocations: 4.789 MB / 3.659 GB, free: 19.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.222e-05/12.38, allocations: 17 kB / 3.659 GB, free: 19.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1783/12.56, allocations: 8.321 MB / 3.667 GB, free: 19.18 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004067/12.56, allocations: 382.7 kB / 3.668 GB, free: 19.18 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03723/12.6, allocations: 5.083 MB / 3.673 GB, free: 18.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00808/12.61, allocations: 245 kB / 3.673 GB, free: 18.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006607/12.61, allocations: 126.1 kB / 3.673 GB, free: 18.05 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/12.61, allocations: 3.469 kB / 3.673 GB, free: 18.05 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02636/12.64, allocations: 4.511 MB / 3.677 GB, free: 17.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.286e-05/12.64, allocations: 11.12 kB / 3.677 GB, free: 17.96 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0193/12.66, allocations: 2.913 MB / 3.68 GB, free: 17.54 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003715/12.66, allocations: 443.8 kB / 3.681 GB, free: 17.22 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02467/12.68, allocations: 4.437 MB / 3.685 GB, free: 13.88 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005758/12.69, allocations: 251.4 kB / 3.685 GB, free: 13.69 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006527/12.69, allocations: 126.7 kB / 3.685 GB, free: 13.59 MB / 474.7 MB 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.001806/12.69, allocations: 496.3 kB / 3.686 GB, free: 13.14 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006587/12.69, allocations: 138.4 kB / 3.686 GB, free: 13.01 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04211/12.74, allocations: 9.512 MB / 3.695 GB, free: 5.105 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001286/12.74, allocations: 66.5 kB / 3.695 GB, free: 5.062 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/12.74, allocations: 0 / 3.695 GB, free: 5.062 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.097e-05/12.74, allocations: 11.02 kB / 3.695 GB, free: 5.062 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04661/12.78, allocations: 12.43 MB / 3.708 GB, free: 10.69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.38e-05/12.78, allocations: 0 / 3.708 GB, free: 10.69 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002503/12.79, allocations: 270 kB / 3.708 GB, free: 10.48 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1573/12.94, allocations: 8.9 MB / 3.716 GB, free: 3.77 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007403/12.94, allocations: 58.89 kB / 3.717 GB, free: 3.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4084/13.35, allocations: 6.074 MB / 3.722 GB, free: 60 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.926e-06/13.35, allocations: 8.781 kB / 3.722 GB, free: 60 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03875/13.39, allocations: 7.368 MB / 3.73 GB, free: 59.45 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002357/13.39, allocations: 0.6818 MB / 3.73 GB, free: 59.36 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008298/13.39, allocations: 37.34 kB / 3.73 GB, free: 59.36 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005701/13.4, allocations: 232.3 kB / 3.731 GB, free: 59.36 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007426/13.4, allocations: 130.1 kB / 3.731 GB, free: 59.35 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004532/13.4, allocations: 81.34 kB / 3.731 GB, free: 59.35 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001864/13.4, allocations: 0.7518 MB / 3.732 GB, free: 59.24 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.62e-07/13.4, allocations: 4.719 kB / 3.732 GB, free: 59.24 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01404/13.42, allocations: 2.24 MB / 3.734 GB, free: 59.24 MB / 490.7 MB 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.05397/13.47, allocations: 10.36 MB / 3.744 GB, free: 57.45 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.04172/13.51, allocations: 6.733 MB / 3.75 GB, free: 57.39 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.199e-05/13.51, allocations: 0 / 3.75 GB, free: 57.39 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01715/13.53, allocations: 3.066 MB / 3.753 GB, free: 57.35 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005935/13.54, allocations: 0.5918 MB / 3.754 GB, free: 57.33 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3705/13.91, allocations: 136.1 MB / 3.887 GB, free: 18.71 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001276/13.91, allocations: 1.635 MB / 3.888 GB, free: 17.39 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001838/13.91, allocations: 0.8145 MB / 3.889 GB, free: 17.28 MB / 490.7 MB Notification: Performance of SimCode: time 1.883e-06/13.91, allocations: 3.172 kB / 3.889 GB, free: 17.28 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.091/19, allocations: 80.06 MB / 3.967 GB, free: 52.42 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar_res.mat does not exist to compare? outputFormat=mat