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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001144/0.001145, allocations: 181.4 kB / 8.131 MB, free: 2.184 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.303/1.303, allocations: 221.4 MB / 229.9 MB, free: 3.215 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.000989/0.000989, allocations: 98.81 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.408e-06/9.448e-06, allocations: 4 kB / 336.5 MB, free: 9.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3171, allocations: 50.39 MB / 386.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.683/7, allocations: 2.813 GB / 3.19 GB, free: 127.8 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/7, allocations: 73.55 kB / 3.19 GB, free: 127.8 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: time 2.854/9.854, allocations: 0.7524 GB / 3.943 GB, free: 39.71 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001924/9.854, allocations: 43.56 kB / 3.943 GB, free: 39.7 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.01517/9.869, allocations: 2.919 MB / 3.946 GB, free: 38.34 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/9.869, allocations: 7.438 kB / 3.946 GB, free: 38.34 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005746/9.875, allocations: 0.6275 MB / 3.946 GB, free: 38.26 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003756/9.879, allocations: 1.064 MB / 3.947 GB, free: 37.94 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000139/9.879, allocations: 45.38 kB / 3.948 GB, free: 37.94 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000555/9.88, allocations: 67.72 kB / 3.948 GB, free: 37.94 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003694/9.883, allocations: 1.746 MB / 3.949 GB, free: 37.93 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003669/9.887, allocations: 1.572 MB / 3.951 GB, free: 37.59 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.471e-05/9.887, allocations: 6.312 kB / 3.951 GB, free: 37.59 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003189/9.888, allocations: 6.625 kB / 3.951 GB, free: 37.59 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001126/9.888, allocations: 91.02 kB / 3.951 GB, free: 37.58 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5681/10.46, allocations: 167.4 MB / 4.114 GB, free: 55.7 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002813/10.46, allocations: 1.109 MB / 4.115 GB, free: 55.65 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001036/10.46, allocations: 0.5821 MB / 4.116 GB, free: 55.64 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03408/10.49, allocations: 16.91 MB / 4.133 GB, free: 44.55 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.527e-05/10.49, allocations: 43.28 kB / 4.133 GB, free: 44.51 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=91): time 5.54e-06/10.49, allocations: 0 / 4.133 GB, free: 44.51 MB / 0.4948 GB Notification: Performance of matching and sorting (n=91): time 0.01634/10.51, allocations: 3.05 MB / 4.136 GB, free: 44.41 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.954e-05/10.51, allocations: 218.2 kB / 4.136 GB, free: 44.15 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001737/10.51, allocations: 0.7714 MB / 4.137 GB, free: 44.02 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002993/10.51, allocations: 28.05 kB / 4.137 GB, free: 43.98 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004286/10.51, allocations: 0.4975 MB / 4.137 GB, free: 43.75 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005588/10.51, allocations: 303.5 kB / 4.137 GB, free: 43.59 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/10.51, allocations: 0 / 4.137 GB, free: 43.59 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001425/10.51, allocations: 359 kB / 4.138 GB, free: 43.29 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/10.51, allocations: 0.6075 MB / 4.138 GB, free: 43.28 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001359/10.52, allocations: 0.9545 MB / 4.139 GB, free: 42.88 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006389/10.52, allocations: 1.281 MB / 4.14 GB, free: 42.85 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.641e-05/10.52, allocations: 3.781 kB / 4.14 GB, free: 42.85 MB / 0.4948 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01157/10.53, allocations: 3.056 MB / 4.143 GB, free: 42.71 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000944/10.54, allocations: 3.747 MB / 4.147 GB, free: 38.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.98e-05/10.54, allocations: 11.5 kB / 4.147 GB, free: 38.77 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006428/10.54, allocations: 1.124 MB / 4.148 GB, free: 38.72 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/10.54, allocations: 281.9 kB / 4.148 GB, free: 38.72 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006553/10.55, allocations: 2.052 MB / 4.15 GB, free: 38.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003279/10.55, allocations: 265.8 kB / 4.151 GB, free: 38.11 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005497/10.55, allocations: 74.92 kB / 4.151 GB, free: 38.11 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/10.55, allocations: 3.562 kB / 4.151 GB, free: 38.11 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008064/10.56, allocations: 1.945 MB / 4.153 GB, free: 38.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.789e-05/10.56, allocations: 9.625 kB / 4.153 GB, free: 38.06 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008735/10.56, allocations: 203.4 kB / 4.153 GB, free: 38.05 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001715/10.56, allocations: 365.2 kB / 4.153 GB, free: 38.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001155/10.57, allocations: 0.8378 MB / 4.154 GB, free: 37.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002085/10.57, allocations: 199.2 kB / 4.154 GB, free: 37.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002777/10.57, allocations: 72.11 kB / 4.154 GB, free: 37.48 MB / 0.4948 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.0005869/10.57, allocations: 153.5 kB / 4.154 GB, free: 37.37 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001866/10.57, allocations: 0.4895 MB / 4.155 GB, free: 37.31 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0102/10.58, allocations: 4.366 MB / 4.159 GB, free: 37.01 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-05/10.58, allocations: 28.36 kB / 4.159 GB, free: 37.01 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/10.58, allocations: 0 / 4.159 GB, free: 37.01 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-05/10.58, allocations: 6.656 kB / 4.159 GB, free: 37.01 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01274/10.59, allocations: 6.062 MB / 4.165 GB, free: 36.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-05/10.59, allocations: 3.875 kB / 4.165 GB, free: 36.46 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005633/10.59, allocations: 116.1 kB / 4.165 GB, free: 36.46 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004584/10.6, allocations: 2.25 MB / 4.167 GB, free: 36.36 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001537/10.6, allocations: 19.53 kB / 4.167 GB, free: 36.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005609/10.6, allocations: 2.813 MB / 4.17 GB, free: 35.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-06/10.6, allocations: 3.938 kB / 4.17 GB, free: 35.77 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009342/10.61, allocations: 3.647 MB / 4.174 GB, free: 35.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00121/10.62, allocations: 0.5014 MB / 4.174 GB, free: 34.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005065/10.62, allocations: 7.844 kB / 4.174 GB, free: 34.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001526/10.62, allocations: 105.7 kB / 4.174 GB, free: 34.91 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/10.62, allocations: 62.78 kB / 4.174 GB, free: 34.91 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001182/10.62, allocations: 44.22 kB / 4.174 GB, free: 34.91 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001437/10.62, allocations: 0.8645 MB / 4.175 GB, free: 34.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009072/10.63, allocations: 1.924 MB / 4.177 GB, free: 34.69 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 13 ($cse2.phase,$cse2.region,$cse6.phase,$cse6.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 (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.01121/10.64, allocations: 2.418 MB / 4.18 GB, free: 34.31 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007381/10.65, allocations: 2.802 MB / 4.182 GB, free: 34.27 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.632e-05/10.65, allocations: 3.547 kB / 4.182 GB, free: 34.27 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003256/10.65, allocations: 1.358 MB / 4.184 GB, free: 34.25 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003452/10.65, allocations: 470.1 kB / 4.184 GB, free: 34.21 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007613/10.66, allocations: 2.728 MB / 4.187 GB, free: 33.58 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00207/10.66, allocations: 1.503 MB / 4.188 GB, free: 32.83 MB / 0.4948 GB Notification: Performance of SimCode: time 1.273e-06/10.66, allocations: 1.125 kB / 4.188 GB, free: 32.83 MB / 0.4948 GB Notification: Performance of Templates: time 0.09503/10.76, allocations: 65.48 MB / 4.252 GB, free: 7.48 MB / 0.4948 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