Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002451/0.002451, allocations: 175.1 kB / 8.148 MB, free: 2.207 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.677/1.677, allocations: 205.2 MB / 213.8 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001258/0.001258, allocations: 87.11 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.279e-05/1.283e-05, allocations: 4 kB / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.252, allocations: 47.56 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.243/6.495, allocations: 2.808 GB / 3.161 GB, free: 74.84 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002122/6.495, allocations: 76.08 kB / 3.161 GB, free: 74.82 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 3.6/10.1, allocations: 0.7442 GB / 3.905 GB, free: 35.38 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002276/10.1, allocations: 42.47 kB / 3.905 GB, free: 35.38 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.01803/10.11, allocations: 2.92 MB / 3.908 GB, free: 34.32 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/10.11, allocations: 9.906 kB / 3.908 GB, free: 34.32 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007754/10.12, allocations: 0.6281 MB / 3.909 GB, free: 34.24 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004223/10.13, allocations: 1.07 MB / 3.91 GB, free: 33.91 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001612/10.13, allocations: 46.69 kB / 3.91 GB, free: 33.91 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005102/10.13, allocations: 63.97 kB / 3.91 GB, free: 33.91 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005675/10.13, allocations: 1.742 MB / 3.912 GB, free: 33.91 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005221/10.14, allocations: 1.572 MB / 3.913 GB, free: 33.57 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.579e-05/10.14, allocations: 6.938 kB / 3.913 GB, free: 33.56 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002669/10.14, allocations: 6.719 kB / 3.913 GB, free: 33.56 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001399/10.14, allocations: 89.52 kB / 3.913 GB, free: 33.56 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8196/10.96, allocations: 167.3 MB / 4.077 GB, free: 150.7 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004213/10.96, allocations: 1.12 MB / 4.078 GB, free: 150.7 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001707/10.96, allocations: 0.5749 MB / 4.078 GB, free: 150.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05876/11.02, allocations: 16.9 MB / 4.095 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.353e-05/11.02, allocations: 43.84 kB / 4.095 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=91): time 3.727e-06/11.02, allocations: 3.391 kB / 4.095 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=91): time 0.02617/11.05, allocations: 3.047 MB / 4.098 GB, free: 140.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.245e-05/11.05, allocations: 221.8 kB / 4.098 GB, free: 139.9 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001878/11.05, allocations: 0.7677 MB / 4.099 GB, free: 139.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003913/11.05, allocations: 25.7 kB / 4.099 GB, free: 139.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003449/11.05, allocations: 0.5066 MB / 4.099 GB, free: 139.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006603/11.05, allocations: 308.2 kB / 4.1 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/11.05, allocations: 0 / 4.1 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001396/11.05, allocations: 357.8 kB / 4.1 GB, free: 139 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001839/11.05, allocations: 0.6039 MB / 4.101 GB, free: 139 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002176/11.06, allocations: 0.9534 MB / 4.101 GB, free: 138.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01094/11.07, allocations: 1.281 MB / 4.103 GB, free: 138.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-05/11.07, allocations: 3.219 kB / 4.103 GB, free: 138.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01832/11.09, allocations: 3.007 MB / 4.106 GB, free: 138.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000964/11.09, allocations: 3.745 MB / 4.109 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-05/11.09, allocations: 12.42 kB / 4.109 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01206/11.1, allocations: 1.124 MB / 4.11 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002382/11.1, allocations: 281.2 kB / 4.111 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009886/11.11, allocations: 2.028 MB / 4.113 GB, free: 134 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002986/11.11, allocations: 196.6 kB / 4.113 GB, free: 134 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004231/11.11, allocations: 76.45 kB / 4.113 GB, free: 134 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/11.11, allocations: 4.25 kB / 4.113 GB, free: 134 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01289/11.13, allocations: 1.95 MB / 4.115 GB, free: 134 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.183e-05/11.13, allocations: 13.48 kB / 4.115 GB, free: 134 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001524/11.13, allocations: 198.1 kB / 4.115 GB, free: 134 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003322/11.13, allocations: 355.4 kB / 4.115 GB, free: 134 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/11.13, allocations: 0.8314 MB / 4.116 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002875/11.14, allocations: 203.4 kB / 4.116 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003866/11.14, allocations: 72.39 kB / 4.116 GB, free: 133.4 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.0005946/11.14, allocations: 68.3 kB / 4.117 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002387/11.14, allocations: 0.4888 MB / 4.117 GB, free: 133.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01653/11.16, allocations: 4.364 MB / 4.121 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.742e-05/11.16, allocations: 32.64 kB / 4.121 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/11.16, allocations: 3.828 kB / 4.121 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.043e-05/11.16, allocations: 3.375 kB / 4.121 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02028/11.18, allocations: 6.082 MB / 4.127 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-05/11.18, allocations: 5.875 kB / 4.127 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001127/11.18, allocations: 114.7 kB / 4.127 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008289/11.19, allocations: 2.252 MB / 4.13 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003233/11.19, allocations: 22.84 kB / 4.13 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009483/11.2, allocations: 2.812 MB / 4.132 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.989e-06/11.2, allocations: 10.08 kB / 4.132 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01524/11.21, allocations: 3.651 MB / 4.136 GB, free: 131.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001673/11.21, allocations: 0.507 MB / 4.136 GB, free: 131 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006498/11.22, allocations: 7.156 kB / 4.136 GB, free: 131 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002385/11.22, allocations: 102 kB / 4.136 GB, free: 131 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003248/11.22, allocations: 75.61 kB / 4.137 GB, free: 131 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001537/11.22, allocations: 39.44 kB / 4.137 GB, free: 131 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002089/11.22, allocations: 0.8676 MB / 4.137 GB, free: 130.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01033/11.23, allocations: 1.92 MB / 4.139 GB, free: 130.7 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.01323/11.24, allocations: 2.404 MB / 4.142 GB, free: 130.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009601/11.25, allocations: 2.774 MB / 4.144 GB, free: 130.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/11.25, allocations: 2.75 kB / 4.144 GB, free: 130.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003768/11.26, allocations: 1.357 MB / 4.146 GB, free: 130.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005065/11.26, allocations: 470.2 kB / 4.146 GB, free: 130.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009228/11.27, allocations: 2.759 MB / 4.149 GB, free: 129.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002142/11.27, allocations: 1.492 MB / 4.15 GB, free: 129.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.844e-06/11.27, allocations: 0 / 4.15 GB, free: 129.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.1112/11.39, allocations: 52.23 MB / 4.201 GB, free: 125.3 MB / 0.5261 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1)