Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 184 kB / 8.138 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.159/1.159, allocations: 221.4 MB / 229.9 MB, free: 3.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 103.9 kB / 280.8 MB, free: 1.309 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08789/0.08894, allocations: 55.81 MB / 336.6 MB, free: 9.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.2609, allocations: 50.39 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.867/4.128, allocations: 2.813 GB / 3.19 GB, free: 127.6 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001672/4.128, allocations: 81.97 kB / 3.191 GB, free: 127.6 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: 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 1.95/6.078, allocations: 0.7553 GB / 3.946 GB, free: 38.66 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/6.078, allocations: 9.281 kB / 3.946 GB, free: 38.66 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004494/6.083, allocations: 0.6242 MB / 3.946 GB, free: 38.59 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002094/6.085, allocations: 1.081 MB / 3.948 GB, free: 38.26 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.856e-05/6.085, allocations: 47.5 kB / 3.948 GB, free: 38.26 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002071/6.085, allocations: 60.88 kB / 3.948 GB, free: 38.26 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002487/6.087, allocations: 1.746 MB / 3.949 GB, free: 38.25 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002141/6.09, allocations: 1.569 MB / 3.951 GB, free: 37.91 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.825e-05/6.09, allocations: 9.562 kB / 3.951 GB, free: 37.91 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001464/6.09, allocations: 8.656 kB / 3.951 GB, free: 37.91 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.142e-05/6.09, allocations: 93.36 kB / 3.951 GB, free: 37.9 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4317/6.522, allocations: 167.3 MB / 4.114 GB, free: 56.31 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002299/6.524, allocations: 1.113 MB / 4.116 GB, free: 56.26 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006967/6.525, allocations: 0.5794 MB / 4.116 GB, free: 56.25 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02805/6.553, allocations: 16.9 MB / 4.133 GB, free: 45.16 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/6.553, allocations: 48.09 kB / 4.133 GB, free: 45.12 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=91): time 2.785e-06/6.553, allocations: 0 / 4.133 GB, free: 45.12 MB / 0.4948 GB Notification: Performance of matching and sorting (n=91): time 0.01394/6.567, allocations: 3.05 MB / 4.136 GB, free: 45.02 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.908e-05/6.567, allocations: 223.8 kB / 4.136 GB, free: 44.77 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/6.568, allocations: 0.7644 MB / 4.137 GB, free: 44.63 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001167/6.568, allocations: 29.14 kB / 4.137 GB, free: 44.6 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002286/6.568, allocations: 0.4944 MB / 4.137 GB, free: 44.36 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002563/6.569, allocations: 304.9 kB / 4.137 GB, free: 44.21 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.974e-05/6.569, allocations: 4 kB / 4.137 GB, free: 44.2 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.465e-05/6.569, allocations: 358.4 kB / 4.138 GB, free: 43.89 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008607/6.57, allocations: 0.6007 MB / 4.138 GB, free: 43.89 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009798/6.571, allocations: 0.9545 MB / 4.139 GB, free: 43.49 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005662/6.576, allocations: 1.283 MB / 4.14 GB, free: 43.46 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/6.576, allocations: 2.906 kB / 4.14 GB, free: 43.46 MB / 0.4948 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.009202/6.586, allocations: 3.053 MB / 4.143 GB, free: 43.32 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005603/6.586, allocations: 3.753 MB / 4.147 GB, free: 39.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.858e-05/6.586, allocations: 9.406 kB / 4.147 GB, free: 39.39 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006243/6.592, allocations: 1.127 MB / 4.148 GB, free: 39.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/6.593, allocations: 297.4 kB / 4.149 GB, free: 39.33 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005161/6.599, allocations: 2.042 MB / 4.151 GB, free: 38.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001958/6.601, allocations: 261.8 kB / 4.151 GB, free: 38.73 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001696/6.601, allocations: 82.03 kB / 4.151 GB, free: 38.73 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.839e-06/6.601, allocations: 2.656 kB / 4.151 GB, free: 38.73 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00638/6.607, allocations: 1.942 MB / 4.153 GB, free: 38.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.143e-05/6.607, allocations: 9.188 kB / 4.153 GB, free: 38.68 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008291/6.608, allocations: 206.9 kB / 4.153 GB, free: 38.66 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001538/6.61, allocations: 357.4 kB / 4.153 GB, free: 38.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001017/6.611, allocations: 0.8364 MB / 4.154 GB, free: 38.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001596/6.612, allocations: 192.8 kB / 4.154 GB, free: 38.09 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001533/6.612, allocations: 75.16 kB / 4.154 GB, free: 38.09 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.0003187/6.613, allocations: 156.6 kB / 4.155 GB, free: 37.98 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001422/6.614, allocations: 0.4969 MB / 4.155 GB, free: 37.93 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008174/6.622, allocations: 4.358 MB / 4.159 GB, free: 37.62 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.169e-05/6.622, allocations: 28.81 kB / 4.159 GB, free: 37.62 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/6.622, allocations: 0 / 4.159 GB, free: 37.62 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/6.622, allocations: 3.562 kB / 4.159 GB, free: 37.62 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01003/6.632, allocations: 6.061 MB / 4.165 GB, free: 37.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/6.632, allocations: 3.844 kB / 4.165 GB, free: 37.07 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004797/6.633, allocations: 117 kB / 4.165 GB, free: 37.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004185/6.637, allocations: 2.252 MB / 4.168 GB, free: 36.97 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.944e-05/6.637, allocations: 16.39 kB / 4.168 GB, free: 36.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004882/6.642, allocations: 2.813 MB / 4.17 GB, free: 36.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/6.642, allocations: 8.5 kB / 4.17 GB, free: 36.38 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007799/6.65, allocations: 3.64 MB / 4.174 GB, free: 35.71 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007998/6.658, allocations: 4.165 MB / 4.178 GB, free: 34.66 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007535/6.659, allocations: 0.5031 MB / 4.178 GB, free: 34.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002919/6.659, allocations: 8.578 kB / 4.178 GB, free: 34.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/6.66, allocations: 99.56 kB / 4.179 GB, free: 34.45 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/6.66, allocations: 72.84 kB / 4.179 GB, free: 34.45 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.879e-05/6.66, allocations: 40.5 kB / 4.179 GB, free: 34.45 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001049/6.661, allocations: 0.8729 MB / 4.179 GB, free: 34.33 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008936/6.67, allocations: 2.315 MB / 4.182 GB, free: 34.2 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.009054/6.679, allocations: 2.416 MB / 4.184 GB, free: 33.81 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005327/6.685, allocations: 2.799 MB / 4.187 GB, free: 33.77 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.144e-06/6.685, allocations: 1.938 kB / 4.187 GB, free: 33.77 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002034/6.687, allocations: 1.36 MB / 4.188 GB, free: 33.74 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002425/6.689, allocations: 475.9 kB / 4.189 GB, free: 33.72 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004328/6.694, allocations: 2.718 MB / 4.191 GB, free: 33.09 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009604/6.695, allocations: 1.51 MB / 4.193 GB, free: 32.34 MB / 0.4948 GB Notification: Performance of SimCode: time 4.21e-07/6.695, allocations: 0 / 4.193 GB, free: 32.34 MB / 0.4948 GB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_InverseParameterization_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_InverseParameterization.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1)