Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001116/0.001116, allocations: 199.6 kB / 8.535 MB, free: 1.688 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009668/0.0009669, allocations: 95.67 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.327e-06/9.368e-06, allocations: 0 / 343.1 MB, free: 8.699 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1228, allocations: 51.48 MB / 394.6 MB, free: 5.172 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.642/7.765, allocations: 2.813 GB / 3.199 GB, free: 104.3 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003335/7.765, allocations: 74.12 kB / 3.199 GB, free: 104.3 MB / 458.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 3.311/11.08, allocations: 0.7525 GB / 3.951 GB, free: 27.63 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001322/11.08, allocations: 45.16 kB / 3.951 GB, free: 27.62 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.01509/11.09, allocations: 2.928 MB / 3.954 GB, free: 26.22 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/11.09, allocations: 8.922 kB / 3.954 GB, free: 26.22 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005717/11.1, allocations: 0.6334 MB / 3.955 GB, free: 26.14 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003155/11.1, allocations: 1.071 MB / 3.956 GB, free: 25.74 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.93e-05/11.1, allocations: 46.25 kB / 3.956 GB, free: 25.73 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002025/11.1, allocations: 59.91 kB / 3.956 GB, free: 25.73 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00317/11.1, allocations: 1.749 MB / 3.958 GB, free: 25.09 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002413/11.11, allocations: 1.579 MB / 3.959 GB, free: 24.31 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.07e-05/11.11, allocations: 3.938 kB / 3.959 GB, free: 24.3 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001363/11.11, allocations: 3.219 kB / 3.959 GB, free: 24.3 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-05/11.11, allocations: 94.81 kB / 3.959 GB, free: 24.29 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6545/11.76, allocations: 189.3 MB / 4.144 GB, free: 35.39 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002385/11.76, allocations: 1.11 MB / 4.145 GB, free: 35.35 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007824/11.76, allocations: 0.5794 MB / 4.146 GB, free: 35.34 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3076/12.07, allocations: 19.29 MB / 4.165 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.134e-05/12.07, allocations: 47.78 kB / 4.165 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=91): time 4.208e-06/12.07, allocations: 4.469 kB / 4.165 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=91): time 0.01551/12.09, allocations: 3.053 MB / 4.168 GB, free: 125.6 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.778e-05/12.09, allocations: 220.1 kB / 4.168 GB, free: 125.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00138/12.09, allocations: 0.7696 MB / 4.169 GB, free: 125.3 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002885/12.09, allocations: 29.3 kB / 4.169 GB, free: 125.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003187/12.09, allocations: 0.4915 MB / 4.169 GB, free: 125 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003662/12.09, allocations: 316 kB / 4.169 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.44e-05/12.09, allocations: 0 / 4.169 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001074/12.09, allocations: 358.8 kB / 4.17 GB, free: 124.5 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001013/12.09, allocations: 0.6003 MB / 4.17 GB, free: 124.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/12.09, allocations: 0.9572 MB / 4.171 GB, free: 124.1 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006144/12.1, allocations: 1.299 MB / 4.173 GB, free: 124.1 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.613e-05/12.1, allocations: 3.312 kB / 4.173 GB, free: 124.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01059/12.11, allocations: 3.064 MB / 4.176 GB, free: 124 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001028/12.11, allocations: 3.742 MB / 4.179 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.929e-05/12.11, allocations: 12.06 kB / 4.179 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006398/12.12, allocations: 1.137 MB / 4.18 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001348/12.12, allocations: 285.8 kB / 4.181 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005598/12.12, allocations: 2.055 MB / 4.183 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002352/12.13, allocations: 264.5 kB / 4.183 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001845/12.13, allocations: 74 kB / 4.183 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/12.13, allocations: 3.875 kB / 4.183 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007247/12.13, allocations: 1.955 MB / 4.185 GB, free: 119.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.799e-05/12.13, allocations: 14.94 kB / 4.185 GB, free: 119.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008154/12.13, allocations: 205.1 kB / 4.185 GB, free: 119.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001627/12.14, allocations: 356 kB / 4.185 GB, free: 119.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001088/12.14, allocations: 0.8362 MB / 4.186 GB, free: 119 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0019/12.14, allocations: 204.3 kB / 4.186 GB, free: 119 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001764/12.14, allocations: 74.09 kB / 4.187 GB, free: 119 MB / 0.5261 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.0004807/12.14, allocations: 141 kB / 4.187 GB, free: 118.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001384/12.14, allocations: 499 kB / 4.187 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00888/12.15, allocations: 4.389 MB / 4.191 GB, free: 118.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.832e-05/12.15, allocations: 31.12 kB / 4.191 GB, free: 118.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/12.15, allocations: 2.156 kB / 4.191 GB, free: 118.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/12.15, allocations: 3.656 kB / 4.191 GB, free: 118.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01122/12.16, allocations: 6.074 MB / 4.197 GB, free: 118 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.115e-05/12.16, allocations: 6.781 kB / 4.197 GB, free: 118 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005338/12.16, allocations: 120.5 kB / 4.198 GB, free: 118 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004779/12.17, allocations: 2.242 MB / 4.2 GB, free: 117.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001532/12.17, allocations: 20.47 kB / 4.2 GB, free: 117.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005625/12.17, allocations: 2.835 MB / 4.203 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.765e-06/12.17, allocations: 3.469 kB / 4.203 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008698/12.18, allocations: 3.664 MB / 4.206 GB, free: 116.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/12.18, allocations: 0.5012 MB / 4.207 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002511/12.18, allocations: 3.875 kB / 4.207 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/12.18, allocations: 96.98 kB / 4.207 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/12.18, allocations: 76.17 kB / 4.207 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.114e-05/12.18, allocations: 44.2 kB / 4.207 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001189/12.19, allocations: 0.8666 MB / 4.208 GB, free: 116.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009906/12.2, allocations: 1.941 MB / 4.21 GB, free: 116.3 MB / 0.5261 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.00987/12.21, allocations: 2.433 MB / 4.212 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005495/12.21, allocations: 2.802 MB / 4.215 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/12.21, allocations: 1.094 kB / 4.215 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002018/12.21, allocations: 1.359 MB / 4.216 GB, free: 116 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002863/12.22, allocations: 482.9 kB / 4.216 GB, free: 116 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005231/12.22, allocations: 2.717 MB / 4.219 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001149/12.22, allocations: 1.499 MB / 4.221 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.403e-06/12.22, allocations: 0 / 4.221 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of Templates: time 0.1032/12.33, allocations: 65.59 MB / 4.285 GB, free: 111.8 MB / 0.5261 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.sim & ./Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Fluid.Examples.InverseParameterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches