Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_DC_Loads_Examples_Resistor",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.317/2.317, allocations: 248.6 MB / 255.9 MB, free: 7.125 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.001672/0.001672, allocations: 188.2 kB / 315.1 MB, free: 4.285 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.055/2.055, allocations: 205.1 MB / 0.5658 GB, free: 392 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.001895/0.001894, allocations: 98.31 kB / 0.67 GB, free: 5.598 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5189/0.5209, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.7621, allocations: 106.3 MB / 0.8835 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7515/1.514, allocations: 157.9 MB / 1.038 GB, free: 464 kB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004155/1.514, allocations: 90.25 kB / 1.038 GB, free: 416 kB / 0.6511 GB [/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/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13: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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.09834/1.613, allocations: 16.23 MB / 1.054 GB, free: 2.992 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 6.282e-05/1.613, allocations: 12 kB / 1.054 GB, free: 2.98 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002992/1.616, allocations: 139.5 kB / 1.054 GB, free: 2.844 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/1.617, allocations: 295.6 kB / 1.054 GB, free: 2.539 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.348e-05/1.617, allocations: 8 kB / 1.054 GB, free: 2.531 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.478e-05/1.617, allocations: 19.94 kB / 1.054 GB, free: 2.512 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001193/1.618, allocations: 295.3 kB / 1.054 GB, free: 2.316 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/1.62, allocations: 406.8 kB / 1.055 GB, free: 1.973 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.468e-05/1.62, allocations: 0 / 1.055 GB, free: 1.973 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.863e-05/1.62, allocations: 4 kB / 1.055 GB, free: 1.969 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.417e-05/1.62, allocations: 31.75 kB / 1.055 GB, free: 1.941 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005133/1.625, allocations: 2.118 MB / 1.057 GB, free: 15.79 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006786/1.626, allocations: 148.7 kB / 1.057 GB, free: 15.68 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005714/1.626, allocations: 107.9 kB / 1.057 GB, free: 15.59 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/1.627, allocations: 7.984 kB / 1.057 GB, free: 15.59 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.941e-05/1.627, allocations: 30.56 kB / 1.057 GB, free: 15.55 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=14): time 6.973e-06/1.627, allocations: 4 kB / 1.057 GB, free: 15.54 MB / 0.6823 GB Notification: Performance of matching and sorting (n=14): time 0.000928/1.628, allocations: 159 kB / 1.057 GB, free: 15.41 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.825e-05/1.628, allocations: 55.41 kB / 1.057 GB, free: 15.34 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004497/1.628, allocations: 193.8 kB / 1.058 GB, free: 15.17 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.833e-05/1.628, allocations: 25.7 kB / 1.058 GB, free: 15.14 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001959/1.628, allocations: 193.2 kB / 1.058 GB, free: 14.96 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 8.999e-05/1.629, allocations: 49.86 kB / 1.058 GB, free: 14.91 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.905e-05/1.629, allocations: 0 / 1.058 GB, free: 14.91 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001977/1.629, allocations: 333.2 kB / 1.058 GB, free: 14.59 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002334/1.629, allocations: 55.52 kB / 1.058 GB, free: 14.55 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000324/1.629, allocations: 135.4 kB / 1.058 GB, free: 14.4 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000296/1.63, allocations: 76.27 kB / 1.058 GB, free: 14.35 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.067e-06/1.63, allocations: 4 kB / 1.058 GB, free: 14.34 MB / 0.6823 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001007/1.631, allocations: 242 kB / 1.059 GB, free: 14.14 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 3.659e-05/1.631, allocations: 8 kB / 1.059 GB, free: 14.13 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/1.631, allocations: 3.938 kB / 1.059 GB, free: 14.12 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003165/1.631, allocations: 33.03 kB / 1.059 GB, free: 14.09 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005392/1.632, allocations: 47.42 kB / 1.059 GB, free: 14.05 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002207/1.634, allocations: 1.261 MB / 1.06 GB, free: 12.71 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004982/1.635, allocations: 15.84 kB / 1.06 GB, free: 12.7 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.116e-05/1.635, allocations: 11.56 kB / 1.06 GB, free: 12.69 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002082/1.635, allocations: 117.3 kB / 1.06 GB, free: 12.57 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/1.635, allocations: 15.81 kB / 1.06 GB, free: 12.55 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001123/1.635, allocations: 23.27 kB / 1.06 GB, free: 12.54 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.193e-05/1.635, allocations: 12 kB / 1.06 GB, free: 12.53 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/1.635, allocations: 0 / 1.06 GB, free: 12.53 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/1.635, allocations: 0 / 1.06 GB, free: 12.53 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002076/1.637, allocations: 0.645 MB / 1.061 GB, free: 11.89 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/1.637, allocations: 4 kB / 1.061 GB, free: 11.89 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002985/1.638, allocations: 27.92 kB / 1.061 GB, free: 11.86 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002228/1.638, allocations: 24.59 kB / 1.061 GB, free: 11.84 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.295e-05/1.638, allocations: 0 / 1.061 GB, free: 11.84 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002041/1.64, allocations: 1.251 MB / 1.062 GB, free: 10.51 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.328e-05/1.64, allocations: 4.031 kB / 1.062 GB, free: 10.51 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008667/1.641, allocations: 380.9 kB / 1.062 GB, free: 10.1 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001083/1.642, allocations: 0.7515 MB / 1.063 GB, free: 9.32 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002644/1.642, allocations: 108.2 kB / 1.063 GB, free: 9.199 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.796e-05/1.642, allocations: 0 / 1.063 GB, free: 9.199 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004488/1.643, allocations: 11.98 kB / 1.063 GB, free: 9.188 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.337e-05/1.643, allocations: 15.92 kB / 1.063 GB, free: 9.176 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.263e-05/1.643, allocations: 11.98 kB / 1.063 GB, free: 9.164 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0003279/1.643, allocations: 146 kB / 1.063 GB, free: 9.047 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002481/1.646, allocations: 79.62 kB / 1.063 GB, free: 8.969 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002887/1.646, allocations: 103.2 kB / 1.064 GB, free: 8.855 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001016/1.647, allocations: 246.8 kB / 1.064 GB, free: 8.641 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/1.647, allocations: 8.125 kB / 1.064 GB, free: 8.633 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004755/1.648, allocations: 169.3 kB / 1.064 GB, free: 8.473 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008184/1.649, allocations: 50.17 kB / 1.064 GB, free: 8.438 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002288/1.651, allocations: 378 kB / 1.064 GB, free: 8.062 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001058/1.652, allocations: 0.8226 MB / 1.065 GB, free: 7.223 MB / 0.6823 GB Notification: Performance of SimCode: time 1.853e-06/1.652, allocations: 0 / 1.065 GB, free: 7.223 MB / 0.6823 GB