Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.InverseParameterization.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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.866/1.866, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003672/0.0003674, allocations: 8 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1007, allocations: 44.51 MB / 308.5 MB, free: 0.918 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.004/8.105, allocations: 2.64 GB / 2.941 GB, free: 55.86 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/8.105, allocations: 86.41 kB / 2.941 GB, free: 55.82 MB / 410.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.09/12.2, allocations: 0.7455 GB / 3.687 GB, free: 34.06 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.875e-06/12.2, allocations: 0 / 3.687 GB, free: 34.06 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001736/12.2, allocations: 42.66 kB / 3.687 GB, free: 34.05 MB / 442.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.01732/12.21, allocations: 2.875 MB / 3.689 GB, free: 32.65 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.52e-05/12.21, allocations: 9.156 kB / 3.689 GB, free: 32.65 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008767/12.21, allocations: 170.7 kB / 3.69 GB, free: 32.61 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006907/12.22, allocations: 0.6101 MB / 3.69 GB, free: 32.52 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003951/12.22, allocations: 1.093 MB / 3.691 GB, free: 32.19 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001528/12.23, allocations: 95.47 kB / 3.691 GB, free: 32.19 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003876/12.23, allocations: 103.3 kB / 3.691 GB, free: 32.19 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008389/12.23, allocations: 2.271 MB / 3.694 GB, free: 31.84 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.685e-05/12.23, allocations: 7.25 kB / 3.694 GB, free: 31.84 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002981/12.23, allocations: 51.53 kB / 3.694 GB, free: 31.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001693/12.23, allocations: 87.52 kB / 3.694 GB, free: 31.83 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009721/12.24, allocations: 2.385 MB / 3.696 GB, free: 31.82 MB / 442.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.01722/12.26, allocations: 8.911 MB / 3.705 GB, free: 26.71 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00731/12.27, allocations: 1.771 MB / 3.707 GB, free: 26.68 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05588/12.32, allocations: 18.78 MB / 3.725 GB, free: 14.93 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.506e-05/12.32, allocations: 51.31 kB / 3.725 GB, free: 14.89 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00187/12.33, allocations: 211.5 kB / 3.725 GB, free: 14.83 MB / 442.7 MB Notification: Performance of pre-optimization done (n=109): time 6.271e-06/12.33, allocations: 2.391 kB / 3.725 GB, free: 14.83 MB / 442.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.1819/12.51, allocations: 16.21 MB / 3.741 GB, free: 13.43 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/12.51, allocations: 230.4 kB / 3.741 GB, free: 13.18 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00167/12.51, allocations: 0.7467 MB / 3.742 GB, free: 13.02 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000728/12.51, allocations: 53.36 kB / 3.742 GB, free: 12.99 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00115/12.51, allocations: 0.5959 MB / 3.743 GB, free: 28.63 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001161/12.51, allocations: 0.5338 MB / 3.743 GB, free: 28.29 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003424/12.51, allocations: 36.81 kB / 3.743 GB, free: 28.29 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002667/12.51, allocations: 385.4 kB / 3.743 GB, free: 27.97 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007555/12.52, allocations: 1.486 MB / 3.745 GB, free: 27.96 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008054/12.53, allocations: 1.942 MB / 3.747 GB, free: 27.43 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008148/12.54, allocations: 1.61 MB / 3.748 GB, free: 27.39 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.856e-05/12.54, allocations: 3.25 kB / 3.748 GB, free: 27.39 MB / 458.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.02502/12.56, allocations: 4.684 MB / 3.753 GB, free: 27.24 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00201/12.57, allocations: 4.792 MB / 3.758 GB, free: 22.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.33e-05/12.57, allocations: 11.5 kB / 3.758 GB, free: 22.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1702/12.74, allocations: 8.321 MB / 3.766 GB, free: 21.99 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003095/12.74, allocations: 378.7 kB / 3.766 GB, free: 21.99 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02733/12.77, allocations: 5.08 MB / 3.771 GB, free: 20.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006271/12.77, allocations: 247 kB / 3.771 GB, free: 20.87 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007894/12.77, allocations: 130.7 kB / 3.771 GB, free: 20.87 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/12.77, allocations: 3.719 kB / 3.771 GB, free: 20.87 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02566/12.8, allocations: 4.509 MB / 3.776 GB, free: 20.78 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.466e-05/12.8, allocations: 13.12 kB / 3.776 GB, free: 20.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01941/12.82, allocations: 2.906 MB / 3.779 GB, free: 20.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003778/12.82, allocations: 445.9 kB / 3.779 GB, free: 20.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02471/12.85, allocations: 4.442 MB / 3.784 GB, free: 19.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005778/12.85, allocations: 240.1 kB / 3.784 GB, free: 19.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007585/12.85, allocations: 132.4 kB / 3.784 GB, free: 19.6 MB / 458.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.00183/12.86, allocations: 489.2 kB / 3.784 GB, free: 19.39 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006277/12.86, allocations: 139.2 kB / 3.784 GB, free: 19.32 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03954/12.9, allocations: 9.511 MB / 3.794 GB, free: 18.66 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001059/12.9, allocations: 71.39 kB / 3.794 GB, free: 18.65 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/12.9, allocations: 4 kB / 3.794 GB, free: 18.65 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.42e-05/12.9, allocations: 6.984 kB / 3.794 GB, free: 18.65 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04348/12.94, allocations: 12.43 MB / 3.806 GB, free: 9.391 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.681e-05/12.94, allocations: 4 kB / 3.806 GB, free: 9.387 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00233/12.94, allocations: 272.4 kB / 3.806 GB, free: 9.176 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1549/13.1, allocations: 8.9 MB / 3.815 GB, free: 2.465 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007071/13.1, allocations: 70.59 kB / 3.815 GB, free: 2.414 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3936/13.49, allocations: 5.978 MB / 3.821 GB, free: 47.44 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.879e-06/13.49, allocations: 5.656 kB / 3.821 GB, free: 47.44 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03783/13.53, allocations: 7.367 MB / 3.828 GB, free: 46.88 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002259/13.53, allocations: 0.6856 MB / 3.829 GB, free: 46.79 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007315/13.53, allocations: 37.06 kB / 3.829 GB, free: 46.79 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005428/13.54, allocations: 227.7 kB / 3.829 GB, free: 46.79 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006722/13.54, allocations: 133.7 kB / 3.829 GB, free: 46.78 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003731/13.54, allocations: 83.48 kB / 3.829 GB, free: 46.78 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001631/13.54, allocations: 0.7538 MB / 3.83 GB, free: 46.67 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.51e-07/13.54, allocations: 0 / 3.83 GB, free: 46.67 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01296/13.55, allocations: 2.25 MB / 3.832 GB, free: 46.67 MB / 458.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.05004/13.6, allocations: 10.37 MB / 3.842 GB, free: 44.86 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.04304/13.65, allocations: 6.725 MB / 3.849 GB, free: 44.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.391e-05/13.65, allocations: 0 / 3.849 GB, free: 44.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02135/13.67, allocations: 3.067 MB / 3.852 GB, free: 44.77 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005441/13.67, allocations: 0.5845 MB / 3.852 GB, free: 44.76 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7683/14.44, allocations: 138.2 MB / 3.987 GB, free: 40 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001435/14.44, allocations: 1.642 MB / 3.989 GB, free: 39.26 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00195/14.45, allocations: 0.807 MB / 3.99 GB, free: 39.25 MB / 458.7 MB Notification: Performance of SimCode: time 1.713e-06/14.45, allocations: 0 / 3.99 GB, free: 39.25 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.642/19.09, allocations: 80.2 MB / 4.068 GB, free: 35.5 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.InverseParameterization_res.mat does not exist to compare? outputFormat=mat