Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.InverseParameterization.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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.681/1.681, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005012/0.0005013, allocations: 12 kB / 233.3 MB, free: 2.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09457/0.09512, allocations: 38.77 MB / 272.1 MB, free: 12.1 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.759/7.854, allocations: 2.53 GB / 2.796 GB, free: 65.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/7.855, allocations: 81 kB / 2.796 GB, free: 65.11 MB / 362.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.838/11.69, allocations: 0.7261 GB / 3.522 GB, free: 27.1 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.405e-06/11.69, allocations: 0 / 3.522 GB, free: 27.1 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001791/11.69, allocations: 43.84 kB / 3.522 GB, free: 27.09 MB / 394.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.01569/11.71, allocations: 2.775 MB / 3.525 GB, free: 25.71 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/11.71, allocations: 10.25 kB / 3.525 GB, free: 25.71 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008258/11.71, allocations: 177 kB / 3.525 GB, free: 25.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006623/11.72, allocations: 0.5789 MB / 3.525 GB, free: 25.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003917/11.72, allocations: 1.092 MB / 3.527 GB, free: 25.25 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001641/11.72, allocations: 98.11 kB / 3.527 GB, free: 25.25 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004279/11.72, allocations: 106.8 kB / 3.527 GB, free: 25.25 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008503/11.73, allocations: 2.267 MB / 3.529 GB, free: 24.9 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.906e-05/11.73, allocations: 4.688 kB / 3.529 GB, free: 24.9 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003098/11.73, allocations: 55.44 kB / 3.529 GB, free: 24.89 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001643/11.73, allocations: 86.12 kB / 3.529 GB, free: 24.89 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009284/11.74, allocations: 2.389 MB / 3.531 GB, free: 24.88 MB / 394.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.0167/11.76, allocations: 8.914 MB / 3.54 GB, free: 19.76 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007165/11.76, allocations: 1.771 MB / 3.542 GB, free: 19.73 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0558/11.82, allocations: 18.76 MB / 3.56 GB, free: 23.93 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.261e-05/11.82, allocations: 49.81 kB / 3.56 GB, free: 23.89 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001777/11.82, allocations: 202 kB / 3.56 GB, free: 23.83 MB / 410.7 MB Notification: Performance of pre-optimization done (n=109): time 4.618e-06/11.82, allocations: 0 / 3.56 GB, free: 23.83 MB / 410.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.1791/12, allocations: 16.22 MB / 3.576 GB, free: 22.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001723/12, allocations: 223.2 kB / 3.576 GB, free: 22.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001737/12, allocations: 0.7544 MB / 3.577 GB, free: 21.98 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007683/12, allocations: 56.23 kB / 3.577 GB, free: 21.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006168/12, allocations: 0.6012 MB / 3.578 GB, free: 21.59 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001193/12, allocations: 0.5295 MB / 3.578 GB, free: 21.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003476/12.01, allocations: 33.22 kB / 3.578 GB, free: 21.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002489/12.01, allocations: 379.1 kB / 3.579 GB, free: 20.93 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0072/12.01, allocations: 1.486 MB / 3.58 GB, free: 20.92 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007569/12.02, allocations: 1.949 MB / 3.582 GB, free: 20.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007675/12.03, allocations: 1.612 MB / 3.584 GB, free: 20.35 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-05/12.03, allocations: 7.828 kB / 3.584 GB, free: 20.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.02355/12.05, allocations: 4.668 MB / 3.588 GB, free: 20.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001816/12.05, allocations: 4.789 MB / 3.593 GB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-05/12.05, allocations: 15.16 kB / 3.593 GB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.169/12.22, allocations: 8.331 MB / 3.601 GB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00302/12.23, allocations: 382.3 kB / 3.601 GB, free: 14.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02665/12.25, allocations: 5.072 MB / 3.606 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006067/12.26, allocations: 246.2 kB / 3.607 GB, free: 13.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005531/12.26, allocations: 132.6 kB / 3.607 GB, free: 13.83 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/12.26, allocations: 7.672 kB / 3.607 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02422/12.28, allocations: 4.505 MB / 3.611 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-05/12.28, allocations: 15.69 kB / 3.611 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01893/12.3, allocations: 2.913 MB / 3.614 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003743/12.31, allocations: 442.6 kB / 3.614 GB, free: 13.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02426/12.33, allocations: 4.441 MB / 3.619 GB, free: 10.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005666/12.34, allocations: 249.7 kB / 3.619 GB, free: 10.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006989/12.34, allocations: 128.7 kB / 3.619 GB, free: 10.3 MB / 410.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.001745/12.34, allocations: 486.6 kB / 3.62 GB, free: 9.988 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000631/12.34, allocations: 138.4 kB / 3.62 GB, free: 9.852 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04031/12.38, allocations: 9.507 MB / 3.629 GB, free: 2.324 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000128/12.38, allocations: 74.72 kB / 3.629 GB, free: 2.273 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/12.38, allocations: 0 / 3.629 GB, free: 2.273 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.335e-05/12.38, allocations: 11.53 kB / 3.629 GB, free: 2.273 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.378/12.76, allocations: 12.39 MB / 3.641 GB, free: 39.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.573e-05/12.76, allocations: 3.141 kB / 3.641 GB, free: 39.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003265/12.76, allocations: 273.1 kB / 3.641 GB, free: 39.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1842/12.95, allocations: 8.915 MB / 3.65 GB, free: 39.44 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005812/12.95, allocations: 66.56 kB / 3.65 GB, free: 39.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02555/12.97, allocations: 5.923 MB / 3.656 GB, free: 38.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/12.97, allocations: 5.75 kB / 3.656 GB, free: 38.39 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.035/13.01, allocations: 7.368 MB / 3.663 GB, free: 37.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002188/13.01, allocations: 0.686 MB / 3.664 GB, free: 37.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006271/13.01, allocations: 37.45 kB / 3.664 GB, free: 37.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005056/13.01, allocations: 233.7 kB / 3.664 GB, free: 37.67 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005139/13.02, allocations: 131 kB / 3.664 GB, free: 37.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003153/13.02, allocations: 79.03 kB / 3.664 GB, free: 37.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001462/13.02, allocations: 0.7551 MB / 3.665 GB, free: 37.55 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.583e-06/13.02, allocations: 3.562 kB / 3.665 GB, free: 37.55 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01099/13.03, allocations: 2.241 MB / 3.667 GB, free: 37.55 MB / 410.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.04792/13.08, allocations: 10.35 MB / 3.677 GB, free: 35.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.04093/13.12, allocations: 6.732 MB / 3.684 GB, free: 35.66 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/13.12, allocations: 0 / 3.684 GB, free: 35.66 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0164/13.13, allocations: 3.07 MB / 3.687 GB, free: 35.62 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005704/13.14, allocations: 0.5962 MB / 3.688 GB, free: 35.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6707/13.81, allocations: 135.9 MB / 3.82 GB, free: 26.41 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001331/13.81, allocations: 1.643 MB / 3.822 GB, free: 25.66 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00181/13.81, allocations: 0.8094 MB / 3.823 GB, free: 25.66 MB / 410.7 MB Notification: Performance of SimCode: time 1.392e-06/13.81, allocations: 0 / 3.823 GB, free: 25.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.511/18.32, allocations: 80.03 MB / 3.901 GB, free: 12.33 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.InverseParameterization_res.mat does not exist to compare? outputFormat=mat