Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.097/2.097, allocations: 194.9 MB / 211.1 MB, free: 8.555 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005911/0.0005915, allocations: 8 kB / 264 MB, free: 3.492 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3205, allocations: 44.51 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.269/8.59, allocations: 2.64 GB / 2.941 GB, free: 82.89 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003227/8.59, allocations: 79.97 kB / 2.941 GB, free: 82.86 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.143/12.73, allocations: 0.7455 GB / 3.687 GB, free: 32.66 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.675e-06/12.73, allocations: 0 / 3.687 GB, free: 32.66 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001781/12.73, allocations: 40.88 kB / 3.687 GB, free: 32.66 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.01649/12.75, allocations: 2.871 MB / 3.689 GB, free: 31.44 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/12.75, allocations: 10.41 kB / 3.689 GB, free: 31.44 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008642/12.75, allocations: 176.5 kB / 3.69 GB, free: 31.4 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006702/12.76, allocations: 0.6033 MB / 3.69 GB, free: 31.32 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004005/12.76, allocations: 1.096 MB / 3.691 GB, free: 30.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001589/12.76, allocations: 88.05 kB / 3.691 GB, free: 30.98 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004476/12.76, allocations: 103.9 kB / 3.691 GB, free: 30.98 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008429/12.77, allocations: 2.272 MB / 3.694 GB, free: 30.63 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.977e-05/12.77, allocations: 7.469 kB / 3.694 GB, free: 30.63 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003119/12.77, allocations: 51.94 kB / 3.694 GB, free: 30.63 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001566/12.77, allocations: 82.12 kB / 3.694 GB, free: 30.63 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009852/12.78, allocations: 2.393 MB / 3.696 GB, free: 30.61 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.01901/12.8, allocations: 8.91 MB / 3.705 GB, free: 25.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007434/12.81, allocations: 1.764 MB / 3.707 GB, free: 25.49 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09248/12.9, allocations: 18.78 MB / 3.725 GB, free: 13.75 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.096e-05/12.9, allocations: 46.47 kB / 3.725 GB, free: 13.71 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002438/12.9, allocations: 209.4 kB / 3.725 GB, free: 13.65 MB / 442.7 MB Notification: Performance of pre-optimization done (n=109): time 8.095e-06/12.9, allocations: 3.688 kB / 3.725 GB, free: 13.65 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.1859/13.09, allocations: 16.23 MB / 3.741 GB, free: 28.46 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000178/13.09, allocations: 228.6 kB / 3.741 GB, free: 28.21 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001527/13.09, allocations: 0.7481 MB / 3.742 GB, free: 28.05 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006509/13.09, allocations: 52.42 kB / 3.742 GB, free: 28.02 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004952/13.09, allocations: 0.5942 MB / 3.743 GB, free: 27.73 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001053/13.09, allocations: 0.5268 MB / 3.743 GB, free: 27.39 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003628/13.09, allocations: 36 kB / 3.743 GB, free: 27.39 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002577/13.09, allocations: 378.2 kB / 3.744 GB, free: 27.08 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007244/13.1, allocations: 1.492 MB / 3.745 GB, free: 27.07 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007761/13.11, allocations: 1.946 MB / 3.747 GB, free: 26.57 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007868/13.12, allocations: 1.604 MB / 3.748 GB, free: 26.56 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.897e-05/13.12, allocations: 7.219 kB / 3.748 GB, free: 26.56 MB / 458.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.02417/13.14, allocations: 4.732 MB / 3.753 GB, free: 26.41 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002296/13.14, allocations: 4.798 MB / 3.758 GB, free: 21.42 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.173e-05/13.14, allocations: 16.84 kB / 3.758 GB, free: 21.42 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1706/13.31, allocations: 8.32 MB / 3.766 GB, free: 21.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003258/13.32, allocations: 380 kB / 3.766 GB, free: 21.27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02816/13.35, allocations: 5.079 MB / 3.771 GB, free: 20.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00622/13.35, allocations: 242.6 kB / 3.771 GB, free: 20.15 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007537/13.35, allocations: 126.3 kB / 3.772 GB, free: 20.15 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/13.35, allocations: 5.406 kB / 3.772 GB, free: 20.15 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02541/13.38, allocations: 4.515 MB / 3.776 GB, free: 20.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.365e-05/13.38, allocations: 16.16 kB / 3.776 GB, free: 20.06 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02017/13.4, allocations: 2.959 MB / 3.779 GB, free: 19.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003763/13.4, allocations: 449 kB / 3.779 GB, free: 19.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02463/13.43, allocations: 4.46 MB / 3.784 GB, free: 18.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006014/13.43, allocations: 249.2 kB / 3.784 GB, free: 18.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007308/13.43, allocations: 128.3 kB / 3.784 GB, free: 18.88 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.001754/13.44, allocations: 484.2 kB / 3.784 GB, free: 18.67 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006228/13.44, allocations: 140.5 kB / 3.785 GB, free: 18.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03948/13.48, allocations: 9.516 MB / 3.794 GB, free: 17.92 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001055/13.48, allocations: 65.41 kB / 3.794 GB, free: 17.92 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/13.48, allocations: 0 / 3.794 GB, free: 17.92 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.947e-05/13.48, allocations: 7.688 kB / 3.794 GB, free: 17.92 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04353/13.52, allocations: 12.42 MB / 3.806 GB, free: 16.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.924e-05/13.52, allocations: 3.656 kB / 3.806 GB, free: 16.18 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002304/13.52, allocations: 272.5 kB / 3.806 GB, free: 16.17 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1518/13.67, allocations: 8.901 MB / 3.815 GB, free: 12.71 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006331/13.67, allocations: 63.17 kB / 3.815 GB, free: 12.67 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02724/13.7, allocations: 5.922 MB / 3.821 GB, free: 7.547 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.061e-05/13.7, allocations: 9.281 kB / 3.821 GB, free: 7.543 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03936/13.74, allocations: 7.366 MB / 3.828 GB, free: 1.23 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002583/13.74, allocations: 0.6966 MB / 3.829 GB, free: 0.625 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008384/13.74, allocations: 28 kB / 3.829 GB, free: 0.5977 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00556/13.75, allocations: 229 kB / 3.829 GB, free: 436 kB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006879/13.75, allocations: 135.2 kB / 3.829 GB, free: 356 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004061/13.75, allocations: 77.91 kB / 3.829 GB, free: 296 kB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002681/13.75, allocations: 0.8021 MB / 3.83 GB, free: 15.77 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.01e-07/13.75, allocations: 0 / 3.83 GB, free: 15.77 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01262/13.77, allocations: 2.261 MB / 3.832 GB, free: 13.55 MB / 474.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.05366/13.82, allocations: 10.37 MB / 3.842 GB, free: 4.812 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.4052/14.23, allocations: 6.823 MB / 3.849 GB, free: 60.79 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.203e-05/14.23, allocations: 0.9062 kB / 3.849 GB, free: 60.79 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01726/14.24, allocations: 3.073 MB / 3.852 GB, free: 60.76 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005774/14.25, allocations: 0.578 MB / 3.853 GB, free: 60.76 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.383/14.63, allocations: 138.1 MB / 3.987 GB, free: 32.92 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001294/14.63, allocations: 1.647 MB / 3.989 GB, free: 31.6 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004904/14.64, allocations: 1.464 MB / 3.99 GB, free: 30.72 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001903/14.64, allocations: 0.8019 MB / 3.991 GB, free: 30.61 MB / 474.7 MB Notification: Performance of SimCode: time 1.302e-06/14.64, allocations: 0 / 3.991 GB, free: 30.61 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6315/15.27, allocations: 123.4 MB / 4.112 GB, free: 43.73 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003689/15.27, allocations: 254.8 kB / 4.112 GB, free: 43.39 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.573/23.84, allocations: 0 / 4.112 GB, free: 43.39 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.InverseParameterization_res.mat does not exist to compare? outputFormat=mat