Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sink.ports.1..m_flow|sink1.ports.1..m_flow|sink2.ports.1..m_flow|pipe1.flowModel.dps_fg_turbulent.1.|pipe1.flowModel.pathLengths_nominal.1.|pipe2.flowModel.pathLengths_nominal.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization") translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sink.ports.1..m_flow|sink1.ports.1..m_flow|sink2.ports.1..m_flow|pipe1.flowModel.dps_fg_turbulent.1.|pipe1.flowModel.pathLengths_nominal.1.|pipe2.flowModel.pathLengths_nominal.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009683/0.0009683, allocations: 87.86 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003675/0.0003675, allocations: 15.94 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.3539, allocations: 50.4 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.015/7.369, allocations: 2.813 GB / 3.205 GB, free: 97.61 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002179/7.369, allocations: 81.16 kB / 3.206 GB, free: 97.57 MB / 458.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:306:3-308: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 2.599/9.968, allocations: 0.7583 GB / 3.964 GB, free: 31.25 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.224e-06/9.968, allocations: 0 / 3.964 GB, free: 31.25 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001058/9.968, allocations: 37.03 kB / 3.964 GB, free: 31.25 MB / 474.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.01159/9.979, allocations: 2.877 MB / 3.967 GB, free: 29.62 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/9.979, allocations: 11.47 kB / 3.967 GB, free: 29.62 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004941/9.984, allocations: 0.5972 MB / 3.967 GB, free: 29.49 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002797/9.987, allocations: 1.073 MB / 3.968 GB, free: 28.89 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/9.987, allocations: 95 kB / 3.968 GB, free: 28.85 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002436/9.988, allocations: 107.6 kB / 3.968 GB, free: 28.82 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005139/9.993, allocations: 2.277 MB / 3.971 GB, free: 27.23 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.49e-05/9.993, allocations: 3.938 kB / 3.971 GB, free: 27.23 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001766/9.993, allocations: 47.05 kB / 3.971 GB, free: 27.18 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.464e-05/9.993, allocations: 85.39 kB / 3.971 GB, free: 27.11 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005388/9.998, allocations: 2.392 MB / 3.973 GB, free: 25.13 MB / 474.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.01198/10.01, allocations: 9.218 MB / 3.982 GB, free: 16.6 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004428/10.01, allocations: 1.904 MB / 3.984 GB, free: 15.02 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04219/10.06, allocations: 24.44 MB / 4.008 GB, free: 4.559 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.531e-05/10.06, allocations: 47.56 kB / 4.008 GB, free: 4.504 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001391/10.06, allocations: 210.7 kB / 4.008 GB, free: 4.297 MB / 490.7 MB Notification: Performance of pre-optimization done (n=109): time 3.386e-06/10.06, allocations: 0 / 4.008 GB, free: 4.297 MB / 490.7 MB Notification: Performance of matching and sorting (n=109): time 0.3198/10.38, allocations: 4.454 MB / 4.012 GB, free: 49.95 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.004e-05/10.38, allocations: 220.5 kB / 4.013 GB, free: 49.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001637/10.38, allocations: 0.8359 MB / 4.013 GB, free: 49.56 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003972/10.38, allocations: 44.55 kB / 4.014 GB, free: 49.53 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003577/10.38, allocations: 0.5603 MB / 4.014 GB, free: 49.41 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003813/10.38, allocations: 375.9 kB / 4.014 GB, free: 49.23 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.388e-05/10.38, allocations: 22.12 kB / 4.014 GB, free: 49.23 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.711e-05/10.38, allocations: 358.2 kB / 4.015 GB, free: 48.93 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/10.38, allocations: 0.6483 MB / 4.015 GB, free: 48.93 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/10.38, allocations: 1.014 MB / 4.016 GB, free: 48.54 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/10.39, allocations: 0.7665 MB / 4.017 GB, free: 48.54 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/10.39, allocations: 3.781 kB / 4.017 GB, free: 48.54 MB / 490.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003925/10.39, allocations: 2.081 MB / 4.019 GB, free: 48.41 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001043/10.39, allocations: 3.744 MB / 4.023 GB, free: 44.51 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.052e-05/10.39, allocations: 13.66 kB / 4.023 GB, free: 44.51 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03001/10.42, allocations: 3.015 MB / 4.026 GB, free: 44.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001448/10.42, allocations: 285.9 kB / 4.026 GB, free: 44.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002962/10.43, allocations: 1.443 MB / 4.027 GB, free: 43.97 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001955/10.43, allocations: 143.9 kB / 4.028 GB, free: 43.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001957/10.43, allocations: 78.39 kB / 4.028 GB, free: 43.96 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/10.43, allocations: 4.031 kB / 4.028 GB, free: 43.96 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004381/10.43, allocations: 1.793 MB / 4.029 GB, free: 43.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/10.43, allocations: 9.156 kB / 4.029 GB, free: 43.93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008269/10.43, allocations: 195.5 kB / 4.03 GB, free: 43.92 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00146/10.43, allocations: 350 kB / 4.03 GB, free: 43.92 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007757/10.43, allocations: 0.7322 MB / 4.031 GB, free: 43.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001651/10.44, allocations: 152.2 kB / 4.031 GB, free: 43.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000132/10.44, allocations: 66.48 kB / 4.031 GB, free: 43.39 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (129): * Single equations (assignments): 128 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 24} Notification: Performance of prepare postOptimizeDAE: time 0.0009082/10.44, allocations: 432.4 kB / 4.031 GB, free: 43.2 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002445/10.44, allocations: 129.5 kB / 4.031 GB, free: 43.14 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007647/10.45, allocations: 5.671 MB / 4.037 GB, free: 42.66 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.47e-05/10.45, allocations: 64.78 kB / 4.037 GB, free: 42.66 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/10.45, allocations: 0 / 4.037 GB, free: 42.66 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.455e-05/10.45, allocations: 3.938 kB / 4.037 GB, free: 42.66 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01002/10.46, allocations: 7.716 MB / 4.045 GB, free: 42.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/10.46, allocations: 0 / 4.045 GB, free: 42.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008504/10.46, allocations: 207.7 kB / 4.045 GB, free: 42.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02696/10.48, allocations: 4.014 MB / 4.049 GB, free: 42.02 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000405/10.48, allocations: 26.22 kB / 4.049 GB, free: 42.02 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003208/10.49, allocations: 2.373 MB / 4.051 GB, free: 41.45 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/10.49, allocations: 2.719 kB / 4.051 GB, free: 41.45 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005148/10.49, allocations: 3.686 MB / 4.055 GB, free: 40.96 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/10.49, allocations: 0.6519 MB / 4.055 GB, free: 40.69 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002058/10.49, allocations: 20.44 kB / 4.055 GB, free: 40.69 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/10.49, allocations: 131 kB / 4.055 GB, free: 40.68 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/10.5, allocations: 102 kB / 4.056 GB, free: 40.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-05/10.5, allocations: 43.81 kB / 4.056 GB, free: 40.68 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001282/10.5, allocations: 1.06 MB / 4.057 GB, free: 40.57 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/10.5, allocations: 0 / 4.057 GB, free: 40.57 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00769/10.5, allocations: 1.953 MB / 4.059 GB, free: 40.46 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse36.phase,$cse36.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 (93): * Single equations (assignments): 80 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.009627/10.51, allocations: 2.185 MB / 4.061 GB, free: 40.22 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006744/10.52, allocations: 3.022 MB / 4.064 GB, free: 40.17 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.904e-06/10.52, allocations: 0 / 4.064 GB, free: 40.17 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002469/10.52, allocations: 1.487 MB / 4.065 GB, free: 40.14 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003744/10.53, allocations: 0.6876 MB / 4.066 GB, free: 40.12 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007953/10.53, allocations: 5.288 MB / 4.071 GB, free: 37.91 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001134/10.54, allocations: 1.626 MB / 4.072 GB, free: 37.18 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00269/10.54, allocations: 1.469 MB / 4.074 GB, free: 37.16 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003255/10.54, allocations: 112.4 kB / 4.074 GB, free: 37.15 MB / 490.7 MB Notification: Performance of SimCode: time 1.082e-06/10.54, allocations: 0 / 4.074 GB, free: 37.15 MB / 490.7 MB Notification: Performance of Templates: time 0.09055/10.63, allocations: 66.97 MB / 4.139 GB, free: 33.03 MB / 490.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/InverseParameterization/InverseParameterization.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches