Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization") translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_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/Modelica 3.1.0+maint.om/package.mo): time 0.7758/0.7758, allocations: 110.8 MB / 118 MB, free: 14.55 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.002295/0.002295, allocations: 172 kB / 143.7 MB, free: 4.867 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 8.886e-06/8.926e-06, allocations: 4 kB / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06612/0.06615, allocations: 25.16 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.998/3.065, allocations: 1.434 GB / 1.628 GB, free: 50.55 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001826/3.065, allocations: 65.58 kB / 1.628 GB, free: 50.55 MB / 234.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Fluid/Interfaces.mo:725:9-730:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Fluid/Interfaces.mo:335:3-337: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.691/5.756, allocations: 0.6592 GB / 2.287 GB, free: 0.6797 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001033/5.756, allocations: 39.67 kB / 2.287 GB, free: 0.6445 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.01252/5.769, allocations: 2.706 MB / 2.29 GB, free: 13.89 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/5.769, allocations: 12.03 kB / 2.29 GB, free: 13.88 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007936/5.77, allocations: 154.2 kB / 2.29 GB, free: 13.73 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003303/5.773, allocations: 1.001 MB / 2.291 GB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.08e-05/5.773, allocations: 48 kB / 2.291 GB, free: 12.65 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001963/5.773, allocations: 60 kB / 2.291 GB, free: 12.59 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003296/5.777, allocations: 1.984 MB / 2.293 GB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002635/5.779, allocations: 1.645 MB / 2.295 GB, free: 8.844 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.33e-05/5.779, allocations: 7.906 kB / 2.295 GB, free: 8.836 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001261/5.78, allocations: 4 kB / 2.295 GB, free: 8.832 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001069/5.78, allocations: 89.88 kB / 2.295 GB, free: 8.746 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2069/5.987, allocations: 9.167 MB / 2.304 GB, free: 31.76 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001945/5.989, allocations: 1.11 MB / 2.305 GB, free: 31.73 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000858/5.989, allocations: 0.6416 MB / 2.306 GB, free: 31.72 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4751/6.465, allocations: 135 MB / 2.438 GB, free: 67.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/6.465, allocations: 44.94 kB / 2.438 GB, free: 67.76 MB / 330.7 MB Notification: Performance of pre-optimization done (n=99): time 3.026e-06/6.465, allocations: 0 / 2.438 GB, free: 67.76 MB / 330.7 MB Notification: Performance of matching and sorting (n=147): time 0.0553/6.52, allocations: 9.29 MB / 2.447 GB, free: 67.37 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.108e-05/6.52, allocations: 223.7 kB / 2.447 GB, free: 67.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/6.521, allocations: 0.6532 MB / 2.448 GB, free: 66.97 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003663/6.522, allocations: 30.48 kB / 2.448 GB, free: 66.94 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003168/6.522, allocations: 472.9 kB / 2.448 GB, free: 66.7 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007122/6.523, allocations: 481.7 kB / 2.448 GB, free: 66.41 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002442/6.523, allocations: 0 / 2.448 GB, free: 66.41 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001387/6.523, allocations: 379.3 kB / 2.449 GB, free: 66.11 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001837/6.525, allocations: 1.167 MB / 2.45 GB, free: 66.11 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002116/6.527, allocations: 1.596 MB / 2.452 GB, free: 65.61 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007711/6.535, allocations: 1.909 MB / 2.453 GB, free: 65.6 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-05/6.535, allocations: 1.594 kB / 2.453 GB, free: 65.6 MB / 330.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.0331/6.568, allocations: 6.581 MB / 2.46 GB, free: 65.42 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/6.568, allocations: 6.531 kB / 2.46 GB, free: 65.42 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-05/6.568, allocations: 13.75 kB / 2.46 GB, free: 65.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01426/6.582, allocations: 3.316 MB / 2.463 GB, free: 65.37 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001845/6.584, allocations: 347 kB / 2.463 GB, free: 65.37 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01379/6.598, allocations: 10.14 MB / 2.473 GB, free: 59.29 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003201/6.601, allocations: 171.6 kB / 2.473 GB, free: 59.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006092/6.602, allocations: 122 kB / 2.474 GB, free: 59.29 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: $DER.sink2.ports[1].h_outflow:DUMMY_DER(fixed = false ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real [1] Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: $DER.sink1.ports[1].h_outflow:DUMMY_DER(fixed = false ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real [1] Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: $DER.sink.ports[1].h_outflow:DUMMY_DER(fixed = false ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real [1] Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: $DER.source.ports[1].h_outflow:DUMMY_DER(fixed = false ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real [1] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.pipe2.flowModel.m_flows[1]:DUMMY_DER(fixed = false ) "mass flow rates between states" type: Real [1] $DER.pipe1.flowModel.rhos_act[1]:DUMMY_DER(fixed = false ) "Actual density 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 $DER.orifice.zeta_nominal:DUMMY_DER(fixed = false ) 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: 11 (pipe2.flowModel.states[2].phase,pipe2.flowModel.states[1].phase,pipe1.flowModel.states[2].phase,pipe1.flowModel.states[1].phase,orifice.state_b.phase,orifice.state_a.phase,source.medium.phase,pump.heatTransfer.states[1].phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (149): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {5 19,5 31,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0009523/6.603, allocations: 173.2 kB / 2.474 GB, free: 59.17 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001049/6.604, allocations: 254.8 kB / 2.474 GB, free: 59.11 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01663/6.621, allocations: 7.974 MB / 2.482 GB, free: 58.72 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.91e-05/6.621, allocations: 49.83 kB / 2.482 GB, free: 58.72 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/6.621, allocations: 4.562 kB / 2.482 GB, free: 58.72 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.656e-05/6.621, allocations: 14.2 kB / 2.482 GB, free: 58.72 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01955/6.64, allocations: 11.38 MB / 2.493 GB, free: 57.78 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/6.64, allocations: 3.062 kB / 2.493 GB, free: 57.78 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/6.642, allocations: 237.3 kB / 2.493 GB, free: 57.78 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01114/6.653, allocations: 4.19 MB / 2.497 GB, free: 57.59 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004243/6.653, allocations: 47.47 kB / 2.497 GB, free: 57.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01495/6.668, allocations: 10.96 MB / 2.508 GB, free: 51.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/6.668, allocations: 0.6562 kB / 2.508 GB, free: 51.5 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0156/6.684, allocations: 6.4 MB / 2.514 GB, free: 50.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001442/6.685, allocations: 0.5832 MB / 2.515 GB, free: 50.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005965/6.686, allocations: 0 / 2.515 GB, free: 50.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002437/6.688, allocations: 162.3 kB / 2.515 GB, free: 50.36 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003391/6.689, allocations: 134.3 kB / 2.515 GB, free: 50.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003195/6.689, allocations: 83.61 kB / 2.515 GB, free: 50.33 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0007963/6.69, allocations: 478.2 kB / 2.516 GB, free: 50.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00916/6.699, allocations: 1.821 MB / 2.517 GB, free: 49.9 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 29 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse22.phase,$cse25.phase,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,source.medium.phase,pump.heatTransfer.states[1].phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {5 17,1 1,6 42,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01357/6.713, allocations: 2.669 MB / 2.52 GB, free: 49.42 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.009589/6.722, allocations: 4.163 MB / 2.524 GB, free: 47.21 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/6.722, allocations: 4 kB / 2.524 GB, free: 47.21 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007637/6.73, allocations: 3.167 MB / 2.527 GB, free: 44.38 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003582/6.734, allocations: 0.5306 MB / 2.528 GB, free: 44 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01/6.744, allocations: 4.227 MB / 2.532 GB, free: 40.27 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1507/6.894, allocations: 1.651 MB / 2.533 GB, free: 78.74 MB / 330.7 MB Notification: Performance of SimCode: time 1.553e-06/6.894, allocations: 0 / 2.533 GB, free: 78.74 MB / 330.7 MB Notification: Performance of Templates: time 0.1202/7.015, allocations: 87.35 MB / 2.619 GB, free: 62.88 MB / 330.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization.sim & ./Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1)