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.001452/0.001452, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.609/1.609, allocations: 221.5 MB / 230.3 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 89.47 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.942e-05/1.944e-05, allocations: 3.938 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1616, allocations: 50.42 MB / 387.5 MB, free: 7.586 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.617/8.778, allocations: 2.813 GB / 3.191 GB, free: 96.35 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/8.779, allocations: 75.39 kB / 3.191 GB, free: 96.29 MB / 442.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 3.25/12.03, allocations: 0.7495 GB / 3.941 GB, free: 15.08 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.854e-06/12.03, allocations: 8 kB / 3.941 GB, free: 15.07 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001875/12.03, allocations: 35.91 kB / 3.941 GB, free: 15.04 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.01399/12.04, allocations: 2.713 MB / 3.943 GB, free: 12.29 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/12.04, allocations: 12.02 kB / 3.943 GB, free: 12.28 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005345/12.05, allocations: 0.6002 MB / 3.944 GB, free: 11.68 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003436/12.05, allocations: 1.066 MB / 3.945 GB, free: 10.59 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001573/12.05, allocations: 48 kB / 3.945 GB, free: 10.54 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006648/12.05, allocations: 63.98 kB / 3.945 GB, free: 10.48 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003825/12.06, allocations: 1.754 MB / 3.947 GB, free: 8.719 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004126/12.06, allocations: 1.553 MB / 3.948 GB, free: 7.035 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.398e-05/12.06, allocations: 3.938 kB / 3.948 GB, free: 7.031 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003012/12.06, allocations: 4 kB / 3.948 GB, free: 7.027 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001219/12.06, allocations: 86 kB / 3.948 GB, free: 6.941 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or 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.6966/12.76, allocations: 167.3 MB / 4.112 GB, free: 10.93 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002189/12.76, allocations: 1.119 MB / 4.113 GB, free: 10.89 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000747/12.76, allocations: 0.5723 MB / 4.113 GB, free: 10.88 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0319/12.79, allocations: 16.91 MB / 4.13 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.667e-05/12.79, allocations: 43.19 kB / 4.13 GB, free: 15.86 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002055/12.79, allocations: 170.3 kB / 4.13 GB, free: 15.86 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=91): time 8.806e-06/12.79, allocations: 3.688 kB / 4.13 GB, free: 15.86 MB / 0.5417 GB Notification: Performance of matching and sorting (n=91): time 0.01017/12.8, allocations: 2.406 MB / 4.132 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002324/12.81, allocations: 221.3 kB / 4.133 GB, free: 15.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00177/12.81, allocations: 0.7437 MB / 4.133 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001791/12.81, allocations: 25.7 kB / 4.133 GB, free: 15.31 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006434/12.81, allocations: 0.6257 MB / 4.134 GB, free: 15.06 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004081/12.81, allocations: 308.9 kB / 4.134 GB, free: 14.9 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.654e-05/12.81, allocations: 2.188 kB / 4.134 GB, free: 14.9 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002675/12.81, allocations: 349.2 kB / 4.135 GB, free: 14.6 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009104/12.81, allocations: 0.5346 MB / 4.135 GB, free: 14.6 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001101/12.81, allocations: 0.8821 MB / 4.136 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005506/12.82, allocations: 1.197 MB / 4.137 GB, free: 14.16 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.549e-05/12.82, allocations: 3.406 kB / 4.137 GB, free: 14.16 MB / 0.5417 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.007084/12.82, allocations: 2.3 MB / 4.139 GB, free: 14.02 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.00159/12.82, allocations: 3.754 MB / 4.143 GB, free: 10.08 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/12.82, allocations: 11.59 kB / 4.143 GB, free: 10.08 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005302/12.83, allocations: 1.041 MB / 4.144 GB, free: 10.04 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/12.83, allocations: 280.5 kB / 4.144 GB, free: 10.04 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004294/12.84, allocations: 1.777 MB / 4.146 GB, free: 9.488 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002202/12.84, allocations: 187.7 kB / 4.146 GB, free: 9.469 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001624/12.84, allocations: 70.47 kB / 4.146 GB, free: 9.469 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/12.84, allocations: 8.469 kB / 4.146 GB, free: 9.465 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005672/12.84, allocations: 1.761 MB / 4.148 GB, free: 9.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/12.84, allocations: 8.781 kB / 4.148 GB, free: 9.41 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007164/12.84, allocations: 190.6 kB / 4.148 GB, free: 9.398 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001346/12.85, allocations: 351.1 kB / 4.149 GB, free: 9.395 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008743/12.85, allocations: 0.7618 MB / 4.149 GB, free: 8.867 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001526/12.85, allocations: 141.6 kB / 4.15 GB, free: 8.855 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001238/12.85, allocations: 69.94 kB / 4.15 GB, free: 8.855 MB / 0.5417 GB 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,pump.heatTransfer.states[1].phase,source.medium.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 () * 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.000416/12.85, allocations: 146.2 kB / 4.15 GB, free: 8.746 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002186/12.85, allocations: 117.8 kB / 4.15 GB, free: 8.688 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007447/12.86, allocations: 3.865 MB / 4.154 GB, free: 6.98 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.164e-05/12.86, allocations: 35.28 kB / 4.154 GB, free: 6.965 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/12.86, allocations: 1.094 kB / 4.154 GB, free: 6.965 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/12.86, allocations: 10.47 kB / 4.154 GB, free: 6.961 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0098/12.87, allocations: 5.312 MB / 4.159 GB, free: 4.352 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/12.87, allocations: 4.062 kB / 4.159 GB, free: 4.348 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004855/12.87, allocations: 114 kB / 4.159 GB, free: 4.262 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004501/12.87, allocations: 2.499 MB / 4.161 GB, free: 2.488 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/12.87, allocations: 14.31 kB / 4.161 GB, free: 2.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005267/12.88, allocations: 2.876 MB / 4.164 GB, free: 0.7969 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.566e-06/12.88, allocations: 1.688 kB / 4.164 GB, free: 0.7969 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3778/13.25, allocations: 3.091 MB / 4.167 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00151/13.26, allocations: 469.4 kB / 4.168 GB, free: 117.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002442/13.26, allocations: 1.688 kB / 4.168 GB, free: 117.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/13.26, allocations: 100.4 kB / 4.168 GB, free: 117.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002123/13.26, allocations: 66.66 kB / 4.168 GB, free: 117.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001141/13.26, allocations: 36.38 kB / 4.168 GB, free: 117.4 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001771/13.26, allocations: 0.8324 MB / 4.169 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.3e-07/13.26, allocations: 0 / 4.169 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009452/13.27, allocations: 1.88 MB / 4.171 GB, free: 117.3 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse20.phase,$cse20.region,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0112/13.28, allocations: 2.353 MB / 4.173 GB, free: 117.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.006127/13.29, allocations: 2.323 MB / 4.175 GB, free: 117.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/13.29, allocations: 4.734 kB / 4.175 GB, free: 117.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001984/13.29, allocations: 0.9022 MB / 4.176 GB, free: 117.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00332/13.29, allocations: 493.5 kB / 4.176 GB, free: 117.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005009/13.3, allocations: 2.375 MB / 4.179 GB, free: 116.5 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00121/13.3, allocations: 1.393 MB / 4.18 GB, free: 115.8 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.004108/13.3, allocations: 1.771 MB / 4.182 GB, free: 115.8 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002634/13.3, allocations: 84.25 kB / 4.182 GB, free: 115.8 MB / 0.5417 GB Notification: Performance of SimCode: time 7.92e-07/13.3, allocations: 0 / 4.182 GB, free: 115.8 MB / 0.5417 GB Notification: Performance of Templates: time 0.07556/13.38, allocations: 54.2 MB / 4.235 GB, free: 113.5 MB / 0.5417 GB 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