Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.InverseParameterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.InverseParameterization") translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001229/0.001229, allocations: 188.8 kB / 8.134 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.159/1.159, allocations: 194.2 MB / 202.8 MB, free: 8.762 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001838/0.001838, allocations: 116.4 kB / 247.7 MB, free: 6.238 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 9.718e-06/9.758e-06, allocations: 4 kB / 297.6 MB, free: 8.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08662/0.08665, allocations: 44.48 MB / 342 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.643/4.73, allocations: 2.639 GB / 2.973 GB, free: 70.91 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/4.73, allocations: 75.95 kB / 2.973 GB, free: 70.89 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:327:3-329: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.525/7.255, allocations: 0.7397 GB / 3.713 GB, free: 25.99 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001028/7.255, allocations: 34.58 kB / 3.713 GB, free: 25.98 MB / 426.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.0115/7.266, allocations: 2.919 MB / 3.716 GB, free: 24.64 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/7.266, allocations: 10.97 kB / 3.716 GB, free: 24.64 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0055/7.272, allocations: 0.6269 MB / 3.716 GB, free: 24.56 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002959/7.275, allocations: 1.085 MB / 3.717 GB, free: 24.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.626e-05/7.275, allocations: 45.69 kB / 3.717 GB, free: 24.23 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002445/7.275, allocations: 65.75 kB / 3.717 GB, free: 24.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002941/7.278, allocations: 1.74 MB / 3.719 GB, free: 24.22 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002336/7.281, allocations: 1.559 MB / 3.721 GB, free: 23.88 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.169e-05/7.281, allocations: 6.031 kB / 3.721 GB, free: 23.88 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001583/7.281, allocations: 7.812 kB / 3.721 GB, free: 23.88 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.127e-05/7.281, allocations: 87.31 kB / 3.721 GB, free: 23.88 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5551/7.836, allocations: 137.6 MB / 3.855 GB, free: 90.56 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002779/7.839, allocations: 1.028 MB / 3.856 GB, free: 90.52 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/7.84, allocations: 0.5501 MB / 3.857 GB, free: 90.52 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03619/7.876, allocations: 17.42 MB / 3.874 GB, free: 79.62 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.892e-05/7.876, allocations: 49.84 kB / 3.874 GB, free: 79.59 MB / 474.7 MB Notification: Performance of pre-optimization done (n=91): time 4.197e-06/7.876, allocations: 0 / 3.874 GB, free: 79.59 MB / 474.7 MB Notification: Performance of matching and sorting (n=129): time 0.07816/7.954, allocations: 10.66 MB / 3.884 GB, free: 79.12 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.157e-05/7.954, allocations: 221.3 kB / 3.884 GB, free: 78.87 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001447/7.956, allocations: 0.7568 MB / 3.885 GB, free: 78.72 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004051/7.956, allocations: 25.7 kB / 3.885 GB, free: 78.69 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003325/7.957, allocations: 0.5162 MB / 3.886 GB, free: 78.42 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000677/7.957, allocations: 436.8 kB / 3.886 GB, free: 78.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003138/7.958, allocations: 0.8438 kB / 3.886 GB, free: 78.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/7.958, allocations: 371 kB / 3.886 GB, free: 77.89 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002142/7.96, allocations: 1.337 MB / 3.888 GB, free: 77.89 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002313/7.962, allocations: 1.777 MB / 3.889 GB, free: 77.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007583/7.97, allocations: 1.981 MB / 3.891 GB, free: 77.39 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.558e-05/7.97, allocations: 3.938 kB / 3.891 GB, free: 77.39 MB / 474.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.01616/7.986, allocations: 5.473 MB / 3.897 GB, free: 77.25 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001086/7.987, allocations: 4.789 MB / 3.901 GB, free: 72.26 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.967e-05/7.987, allocations: 12.69 kB / 3.901 GB, free: 72.26 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01491/8.002, allocations: 4.083 MB / 3.905 GB, free: 72.25 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001567/8.004, allocations: 331.9 kB / 3.906 GB, free: 72.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0171/8.021, allocations: 6.308 MB / 3.912 GB, free: 71.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005124/8.026, allocations: 287.5 kB / 3.912 GB, free: 71.17 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009497/8.027, allocations: 126.8 kB / 3.912 GB, free: 71.17 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/8.027, allocations: 10 kB / 3.912 GB, free: 71.17 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01414/8.041, allocations: 3.147 MB / 3.915 GB, free: 71.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.946e-05/8.042, allocations: 16.23 kB / 3.915 GB, free: 71.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002689/8.044, allocations: 0.5961 MB / 3.916 GB, free: 71.07 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002607/8.047, allocations: 460.3 kB / 3.916 GB, free: 71.06 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003765/8.051, allocations: 1.93 MB / 3.918 GB, free: 70.01 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002754/8.053, allocations: 179.7 kB / 3.918 GB, free: 69.99 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005082/8.054, allocations: 105.3 kB / 3.919 GB, free: 69.99 MB / 474.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.orifice.m_flow:DUMMY_DER(fixed = false ) "Mass flow rate in design flow direction" type: Real $DER.pipe1.flowModel.states[1].h:DUMMY_DER(fixed = false ) "Specific enthalpy" type: Real [2] $DER.pipe1.flowModel.mus_act[1]:DUMMY_DER(fixed = false ) "Actual viscosity per segment" type: Real [1] $DER.pump.m_flow:DUMMY_DER(fixed = false ) "Mass flow rate (total)" type: Real $DER.pump.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (154): * Single equations (assignments): 152 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 21,6 24} Notification: Performance of prepare postOptimizeDAE: time 0.001113/8.055, allocations: 172.8 kB / 3.919 GB, free: 69.87 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002183/8.057, allocations: 0.4969 MB / 3.919 GB, free: 69.81 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0163/8.074, allocations: 7.326 MB / 3.926 GB, free: 69.43 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.741e-05/8.074, allocations: 28.78 kB / 3.926 GB, free: 69.43 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.625e-05/8.074, allocations: 0 / 3.926 GB, free: 69.43 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.061e-05/8.074, allocations: 11.36 kB / 3.926 GB, free: 69.42 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02087/8.095, allocations: 9.712 MB / 3.936 GB, free: 68.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.052e-05/8.095, allocations: 6.406 kB / 3.936 GB, free: 68.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008742/8.096, allocations: 146.9 kB / 3.936 GB, free: 68.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01141/8.107, allocations: 5.063 MB / 3.941 GB, free: 68.59 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004435/8.108, allocations: 48.56 kB / 3.941 GB, free: 68.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01538/8.123, allocations: 6.997 MB / 3.948 GB, free: 67.45 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.137e-05/8.123, allocations: 4.188 kB / 3.948 GB, free: 67.45 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01322/8.136, allocations: 6.187 MB / 3.954 GB, free: 66.68 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001715/8.138, allocations: 0.6441 MB / 3.955 GB, free: 66.49 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007837/8.139, allocations: 13.19 kB / 3.955 GB, free: 66.49 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003642/8.142, allocations: 198.4 kB / 3.955 GB, free: 66.47 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000289/8.143, allocations: 100.6 kB / 3.955 GB, free: 66.47 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002698/8.143, allocations: 73.92 kB / 3.955 GB, free: 66.47 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001582/8.145, allocations: 0.8022 MB / 3.956 GB, free: 66.36 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01325/8.158, allocations: 2.096 MB / 3.958 GB, free: 66.29 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 13 ($cse2.phase,$cse2.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse21.phase,$cse21.region,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 72 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 21,6 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.01422/8.172, allocations: 2.576 MB / 3.96 GB, free: 65.88 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01686/8.189, allocations: 5.325 MB / 3.965 GB, free: 65.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.91e-05/8.189, allocations: 3.5 kB / 3.965 GB, free: 65.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007533/8.197, allocations: 2.529 MB / 3.968 GB, free: 65.75 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003974/8.201, allocations: 477.8 kB / 3.968 GB, free: 65.72 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05251/8.253, allocations: 20.51 MB / 3.988 GB, free: 58.73 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001865/8.255, allocations: 1.585 MB / 3.99 GB, free: 57.39 MB / 474.7 MB Notification: Performance of SimCode: time 1.132e-06/8.255, allocations: 0 / 3.99 GB, free: 57.39 MB / 474.7 MB Notification: Performance of Templates: time 0.3293/8.585, allocations: 101.2 MB / 4.089 GB, free: 90.64 MB / 474.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.InverseParameterization.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.InverseParameterization.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.InverseParameterization -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1)