Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.000954/0.0009541, allocations: 178.7 kB / 8.476 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.353/1.353, allocations: 205.2 MB / 214.1 MB, free: 5.246 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001051/0.001051, allocations: 94.27 kB / 262.1 MB, free: 5.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.386e-06/8.406e-06, allocations: 0 / 315 MB, free: 41.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09564/0.09567, allocations: 47.57 MB / 362.5 MB, free: 9.988 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.401/6.497, allocations: 2.808 GB / 3.162 GB, free: 91.18 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/6.497, allocations: 75.97 kB / 3.162 GB, free: 91.11 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.711/9.208, allocations: 0.7443 GB / 3.906 GB, free: 3.418 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001169/9.208, allocations: 40.06 kB / 3.906 GB, free: 3.383 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.01459/9.223, allocations: 2.919 MB / 3.909 GB, free: 432 kB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/9.223, allocations: 8.031 kB / 3.909 GB, free: 424 kB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2769/9.5, allocations: 0.6261 MB / 3.909 GB, free: 66.86 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003058/9.503, allocations: 1.07 MB / 3.91 GB, free: 66.59 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.506e-05/9.503, allocations: 48.47 kB / 3.91 GB, free: 66.59 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001818/9.503, allocations: 61.22 kB / 3.911 GB, free: 66.59 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002753/9.506, allocations: 1.746 MB / 3.912 GB, free: 66.58 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002226/9.508, allocations: 1.571 MB / 3.914 GB, free: 66.24 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.035e-05/9.508, allocations: 6.875 kB / 3.914 GB, free: 66.24 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001326/9.508, allocations: 3.719 kB / 3.914 GB, free: 66.24 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.12e-05/9.508, allocations: 86.95 kB / 3.914 GB, free: 66.24 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5964/10.1, allocations: 167.3 MB / 4.077 GB, free: 99.67 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002366/10.11, allocations: 1.108 MB / 4.078 GB, free: 99.63 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008313/10.11, allocations: 0.5872 MB / 4.079 GB, free: 99.62 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03151/10.14, allocations: 16.91 MB / 4.095 GB, free: 89.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.511e-05/10.14, allocations: 47.28 kB / 4.096 GB, free: 89.16 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=91): time 2.875e-06/10.14, allocations: 0 / 4.096 GB, free: 89.16 MB / 0.4948 GB Notification: Performance of matching and sorting (n=91): time 0.01478/10.15, allocations: 3.045 MB / 4.098 GB, free: 89.1 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.129e-05/10.15, allocations: 213.6 kB / 4.099 GB, free: 88.85 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001464/10.16, allocations: 0.7747 MB / 4.099 GB, free: 88.71 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002632/10.16, allocations: 25.7 kB / 4.099 GB, free: 88.68 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003093/10.16, allocations: 0.4983 MB / 4.1 GB, free: 88.44 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000354/10.16, allocations: 305.9 kB / 4.1 GB, free: 88.29 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.081e-05/10.16, allocations: 0 / 4.1 GB, free: 88.29 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001082/10.16, allocations: 358.5 kB / 4.101 GB, free: 87.98 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009418/10.16, allocations: 0.6027 MB / 4.101 GB, free: 87.98 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/10.16, allocations: 0.9583 MB / 4.102 GB, free: 87.58 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005843/10.17, allocations: 1.277 MB / 4.103 GB, free: 87.57 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/10.17, allocations: 3.438 kB / 4.103 GB, free: 87.57 MB / 0.4948 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.0103/10.18, allocations: 3.054 MB / 4.106 GB, free: 87.46 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009448/10.18, allocations: 3.752 MB / 4.11 GB, free: 83.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.128e-05/10.18, allocations: 9.438 kB / 4.11 GB, free: 83.56 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006411/10.18, allocations: 1.131 MB / 4.111 GB, free: 83.55 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001344/10.18, allocations: 286.4 kB / 4.111 GB, free: 83.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005591/10.19, allocations: 2.048 MB / 4.113 GB, free: 83.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002362/10.19, allocations: 264 kB / 4.114 GB, free: 82.98 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001635/10.19, allocations: 72.08 kB / 4.114 GB, free: 82.98 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/10.19, allocations: 3 kB / 4.114 GB, free: 82.98 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006565/10.2, allocations: 1.953 MB / 4.116 GB, free: 82.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.709e-05/10.2, allocations: 14.05 kB / 4.116 GB, free: 82.95 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000851/10.2, allocations: 202.4 kB / 4.116 GB, free: 82.94 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001537/10.2, allocations: 356.9 kB / 4.116 GB, free: 82.94 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001133/10.2, allocations: 0.8314 MB / 4.117 GB, free: 82.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001787/10.2, allocations: 202.1 kB / 4.117 GB, free: 82.39 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/10.2, allocations: 73.66 kB / 4.117 GB, free: 82.39 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.0003869/10.21, allocations: 149.4 kB / 4.117 GB, free: 82.29 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00142/10.21, allocations: 499.2 kB / 4.118 GB, free: 82.23 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008639/10.22, allocations: 4.365 MB / 4.122 GB, free: 81.96 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.483e-05/10.22, allocations: 25.47 kB / 4.122 GB, free: 81.96 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/10.22, allocations: 0 / 4.122 GB, free: 81.96 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/10.22, allocations: 9.375 kB / 4.122 GB, free: 81.96 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01072/10.23, allocations: 6.054 MB / 4.128 GB, free: 81.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.197e-06/10.23, allocations: 3.688 kB / 4.128 GB, free: 81.43 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005147/10.23, allocations: 118.2 kB / 4.128 GB, free: 81.43 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004442/10.23, allocations: 2.25 MB / 4.13 GB, free: 81.36 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-05/10.23, allocations: 17 kB / 4.13 GB, free: 81.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005369/10.24, allocations: 2.818 MB / 4.133 GB, free: 80.79 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.548e-06/10.24, allocations: 7.906 kB / 4.133 GB, free: 80.79 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008518/10.24, allocations: 3.639 MB / 4.137 GB, free: 80.13 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/10.25, allocations: 0.5058 MB / 4.137 GB, free: 79.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002646/10.25, allocations: 15.28 kB / 4.137 GB, free: 79.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/10.25, allocations: 95.53 kB / 4.137 GB, free: 79.95 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/10.25, allocations: 71.58 kB / 4.137 GB, free: 79.95 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/10.25, allocations: 40.58 kB / 4.137 GB, free: 79.95 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001506/10.25, allocations: 0.8705 MB / 4.138 GB, free: 79.84 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01098/10.26, allocations: 1.922 MB / 4.14 GB, free: 79.71 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.0103/10.27, allocations: 2.392 MB / 4.142 GB, free: 79.47 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005431/10.28, allocations: 2.802 MB / 4.145 GB, free: 79.43 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-05/10.28, allocations: 3.938 kB / 4.145 GB, free: 79.43 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002011/10.28, allocations: 1.356 MB / 4.147 GB, free: 79.4 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002778/10.28, allocations: 471 kB / 4.147 GB, free: 79.37 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005282/10.29, allocations: 2.726 MB / 4.15 GB, free: 78.74 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001115/10.29, allocations: 1.503 MB / 4.151 GB, free: 77.99 MB / 0.4948 GB Notification: Performance of SimCode: time 8.72e-07/10.29, allocations: 0 / 4.151 GB, free: 77.99 MB / 0.4948 GB Notification: Performance of Templates: time 0.09257/10.38, allocations: 65.38 MB / 4.215 GB, free: 69.98 MB / 0.4948 GB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/InverseParameterization/InverseParameterization.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches