Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Lines.Examples.RCModel.conf.json 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) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_DC_Lines_Examples_RCModel",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/Buildings 7.0.1/package.mo): time 2.374/2.374, allocations: 248.6 MB / 255.9 MB, free: 7.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001749/0.001749, allocations: 183.8 kB / 315.1 MB, free: 4.277 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.003/2.003, allocations: 205.1 MB / 0.5658 GB, free: 352 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.003178/0.003178, allocations: 94.89 kB / 0.67 GB, free: 5.562 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4547/0.458, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.7308, allocations: 106.2 MB / 0.8835 GB, free: 13.34 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7573/1.488, allocations: 164.7 MB / 1.044 GB, free: 9.879 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003636/1.489, allocations: 86.56 kB / 1.044 GB, free: 9.832 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:18:3-18:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:18:3-18:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.07959/1.568, allocations: 18.06 MB / 1.062 GB, free: 10.82 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/1.568, allocations: 8 kB / 1.062 GB, free: 10.82 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002306/1.571, allocations: 159.3 kB / 1.062 GB, free: 10.66 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001404/1.572, allocations: 341.7 kB / 1.062 GB, free: 10.32 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.627e-05/1.572, allocations: 11.94 kB / 1.062 GB, free: 10.3 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.946e-05/1.572, allocations: 24 kB / 1.062 GB, free: 10.28 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001122/1.573, allocations: 351.4 kB / 1.063 GB, free: 10.05 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/1.575, allocations: 480 kB / 1.063 GB, free: 9.66 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/1.575, allocations: 11.92 kB / 1.063 GB, free: 9.648 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.279e-05/1.575, allocations: 0 / 1.063 GB, free: 9.648 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.349e-05/1.575, allocations: 28.64 kB / 1.063 GB, free: 9.621 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004229/1.579, allocations: 2.342 MB / 1.066 GB, free: 7.289 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003305/1.579, allocations: 131.2 kB / 1.066 GB, free: 7.191 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002623/1.58, allocations: 104.7 kB / 1.066 GB, free: 7.121 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.341e-05/1.58, allocations: 3.953 kB / 1.066 GB, free: 7.117 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.698e-05/1.58, allocations: 38.06 kB / 1.066 GB, free: 7.074 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=20): time 3.096e-06/1.58, allocations: 3.938 kB / 1.066 GB, free: 7.07 MB / 0.6823 GB Notification: Performance of matching and sorting (n=23): time 0.002695/1.582, allocations: 0.7947 MB / 1.067 GB, free: 6.34 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.839e-05/1.583, allocations: 51.41 kB / 1.067 GB, free: 6.277 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003804/1.583, allocations: 228.6 kB / 1.067 GB, free: 6.086 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.751e-05/1.583, allocations: 29.7 kB / 1.067 GB, free: 6.051 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000155/1.583, allocations: 207.9 kB / 1.067 GB, free: 5.863 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 9.007e-05/1.583, allocations: 78.97 kB / 1.067 GB, free: 5.793 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.991e-05/1.583, allocations: 0 / 1.067 GB, free: 5.793 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001687/1.583, allocations: 337.3 kB / 1.068 GB, free: 5.465 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002708/1.584, allocations: 96.31 kB / 1.068 GB, free: 5.402 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003582/1.584, allocations: 183.1 kB / 1.068 GB, free: 5.227 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003384/1.584, allocations: 121.9 kB / 1.068 GB, free: 5.148 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/1.584, allocations: 4 kB / 1.068 GB, free: 5.145 MB / 0.6823 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001246/1.586, allocations: 410.9 kB / 1.068 GB, free: 4.809 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/1.586, allocations: 4 kB / 1.068 GB, free: 4.805 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/1.586, allocations: 4 kB / 1.068 GB, free: 4.801 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005874/1.586, allocations: 87.73 kB / 1.068 GB, free: 4.719 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005684/1.587, allocations: 59.91 kB / 1.068 GB, free: 4.66 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004624/1.592, allocations: 3.866 MB / 1.072 GB, free: 0.6133 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004711/1.592, allocations: 4 kB / 1.072 GB, free: 0.6094 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.802e-05/1.592, allocations: 15.19 kB / 1.072 GB, free: 0.5977 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 31 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000165/1.592, allocations: 112.9 kB / 1.072 GB, free: 492 kB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.989e-05/1.592, allocations: 31.61 kB / 1.072 GB, free: 460 kB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001108/1.593, allocations: 37.03 kB / 1.072 GB, free: 444 kB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/1.593, allocations: 144 / 1.072 GB, free: 444 kB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.912e-05/1.593, allocations: 11.97 kB / 1.072 GB, free: 432 kB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/1.593, allocations: 3.938 kB / 1.072 GB, free: 428 kB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006476/1.593, allocations: 343.4 kB / 1.073 GB, free: 112 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/1.593, allocations: 3.984 kB / 1.073 GB, free: 108 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003671/1.594, allocations: 31.98 kB / 1.073 GB, free: 76 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005504/1.594, allocations: 88 kB / 1.073 GB, free: 15.99 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.575e-05/1.594, allocations: 0 / 1.073 GB, free: 15.99 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004443/1.599, allocations: 3.862 MB / 1.077 GB, free: 11.95 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/1.599, allocations: 0 / 1.077 GB, free: 11.95 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001448/1.6, allocations: 0.5498 MB / 1.077 GB, free: 11.49 MB / 0.698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001839/1.602, allocations: 1.035 MB / 1.078 GB, free: 10.6 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002519/1.602, allocations: 124 kB / 1.078 GB, free: 10.46 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.629e-05/1.602, allocations: 0 / 1.078 GB, free: 10.46 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003681/1.603, allocations: 8 kB / 1.078 GB, free: 10.46 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.676e-05/1.603, allocations: 15.28 kB / 1.078 GB, free: 10.45 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.834e-05/1.603, allocations: 8 kB / 1.078 GB, free: 10.44 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.0002704/1.603, allocations: 176.8 kB / 1.079 GB, free: 10.3 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001515/1.605, allocations: 84 kB / 1.079 GB, free: 10.21 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 15 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002134/1.605, allocations: 103.2 kB / 1.079 GB, free: 10.11 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001283/1.606, allocations: 0.5586 MB / 1.079 GB, free: 9.594 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/1.606, allocations: 0 / 1.079 GB, free: 9.594 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007504/1.607, allocations: 427.2 kB / 1.08 GB, free: 9.184 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006508/1.608, allocations: 64.73 kB / 1.08 GB, free: 9.137 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001701/1.609, allocations: 0.4985 MB / 1.08 GB, free: 8.664 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007888/1.61, allocations: 0.8615 MB / 1.081 GB, free: 7.785 MB / 0.698 GB Notification: Performance of SimCode: time 1.142e-06/1.61, allocations: 4 kB / 1.081 GB, free: 7.781 MB / 0.698 GB