Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Lines.Examples.DCLines.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.DCLines,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_DC_Lines_Examples_DCLines",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.402/2.402, allocations: 248.6 MB / 255.9 MB, free: 7.203 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.002346/0.002346, allocations: 192.2 kB / 315.1 MB, free: 4.258 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.096/2.096, allocations: 205.1 MB / 0.5658 GB, free: 384 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.001473/0.001472, allocations: 89.55 kB / 0.67 GB, free: 5.586 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5151/0.5166, allocations: 112.4 MB / 0.7797 GB, free: 103.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.229/0.7456, allocations: 106.2 MB / 0.8835 GB, free: 13.3 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.772/1.518, allocations: 183.4 MB / 1.063 GB, free: 7.629 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005048/1.518, allocations: 87.62 kB / 1.063 GB, free: 7.582 MB / 0.6823 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/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);. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.7539/2.272, allocations: 150 MB / 1.209 GB, free: 8.871 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/2.272, allocations: 8 kB / 1.209 GB, free: 8.863 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04216/2.314, allocations: 3.183 MB / 1.212 GB, free: 5.672 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0171/2.332, allocations: 2.33 MB / 1.215 GB, free: 3.27 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003234/2.332, allocations: 76 kB / 1.215 GB, free: 3.195 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00199/2.334, allocations: 144 kB / 1.215 GB, free: 3.055 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01622/2.35, allocations: 3.516 MB / 1.218 GB, free: 15.53 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01548/2.366, allocations: 3.567 MB / 1.222 GB, free: 11.83 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.55e-05/2.366, allocations: 0 / 1.222 GB, free: 11.83 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008092/2.367, allocations: 4 kB / 1.222 GB, free: 11.82 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002482/2.367, allocations: 152.8 kB / 1.222 GB, free: 11.67 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04942/2.417, allocations: 14.03 MB / 1.236 GB, free: 12.49 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003242/2.42, allocations: 1.073 MB / 1.237 GB, free: 11.41 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003115/2.423, allocations: 1.034 MB / 1.238 GB, free: 10.38 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001704/2.423, allocations: 25.28 kB / 1.238 GB, free: 10.35 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003447/2.427, allocations: 1.288 MB / 1.239 GB, free: 9 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=163): time 5.731e-06/2.427, allocations: 0 / 1.239 GB, free: 9 MB / 0.8542 GB Notification: Performance of matching and sorting (n=250): time 0.03771/2.464, allocations: 7.729 MB / 1.246 GB, free: 1.23 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005445/2.465, allocations: 0.8944 MB / 1.247 GB, free: 128 kB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3383/2.803, allocations: 1.566 MB / 1.249 GB, free: 322.3 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.000694/2.804, allocations: 36.52 kB / 1.249 GB, free: 322.3 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.001172/2.805, allocations: 0.9581 MB / 1.25 GB, free: 322.2 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.001419/2.807, allocations: 0.7848 MB / 1.251 GB, free: 321.9 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003555/2.807, allocations: 3.875 kB / 1.251 GB, free: 321.9 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001847/2.807, allocations: 395.9 kB / 1.251 GB, free: 321.6 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003591/2.811, allocations: 1.245 MB / 1.252 GB, free: 321.6 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004241/2.815, allocations: 1.616 MB / 1.254 GB, free: 321.3 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003921/2.819, allocations: 1.334 MB / 1.255 GB, free: 321.2 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-05/2.819, allocations: 3.75 kB / 1.255 GB, free: 321.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01823/2.838, allocations: 4.434 MB / 1.259 GB, free: 320.9 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004896/2.838, allocations: 2.272 MB / 1.262 GB, free: 318.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.519e-05/2.838, allocations: 3.875 kB / 1.262 GB, free: 318.5 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01173/2.85, allocations: 1.625 MB / 1.263 GB, free: 318.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006534/2.856, allocations: 0.6431 MB / 1.264 GB, free: 318.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02417/2.881, allocations: 8.716 MB / 1.272 GB, free: 316.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009088/2.89, allocations: 415.5 kB / 1.273 GB, free: 316.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001339/2.891, allocations: 88.7 kB / 1.273 GB, free: 316.6 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.629e-05/2.891, allocations: 5.656 kB / 1.273 GB, free: 316.6 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02124/2.913, allocations: 3.682 MB / 1.276 GB, free: 316.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.63e-05/2.913, allocations: 3.5 kB / 1.276 GB, free: 316.4 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01078/2.924, allocations: 1.431 MB / 1.278 GB, free: 316.4 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006917/2.931, allocations: 0.6894 MB / 1.279 GB, free: 316.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03747/2.968, allocations: 11.13 MB / 1.289 GB, free: 313.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008083/2.976, allocations: 421.1 kB / 1.29 GB, free: 313.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008532/2.977, allocations: 86.92 kB / 1.29 GB, free: 313.7 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.varLoad1.T_start,varLoad1.T_start,$PRE.varLoad1.count,varLoad1.count,$PRE.varLoad2.T_start,varLoad2.T_start,$PRE.varLoad2.count,varLoad2.count,$PRE.varLoad3.T_start,varLoad3.T_start,$PRE.varLoad3.count,varLoad3.count,$PRE.varLoad4.T_start,varLoad4.T_start,$PRE.varLoad4.count,varLoad4.count,$PRE.varLoad5.T_start,varLoad5.T_start,$PRE.varLoad5.count,varLoad5.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,48.0%) 52} * Non-linear torn systems: 1 {10 52} Notification: Performance of prepare postOptimizeDAE: time 0.0009419/2.978, allocations: 161.8 kB / 1.29 GB, free: 313.6 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001038/2.979, allocations: 309 kB / 1.29 GB, free: 313.4 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001218/2.98, allocations: 332.7 kB / 1.291 GB, free: 313.4 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.508e-05/2.98, allocations: 24.41 kB / 1.291 GB, free: 313.4 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.961e-05/2.981, allocations: 9.375 kB / 1.291 GB, free: 313.4 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-05/2.981, allocations: 14.34 kB / 1.291 GB, free: 313.4 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006609/2.987, allocations: 2.84 MB / 1.293 GB, free: 313.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.743e-05/2.987, allocations: 0 / 1.293 GB, free: 313.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005775/2.993, allocations: 0.5693 MB / 1.294 GB, free: 313.2 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01161/3.005, allocations: 1.653 MB / 1.296 GB, free: 313.1 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006452/3.005, allocations: 17.41 kB / 1.296 GB, free: 313.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03538/3.041, allocations: 12.67 MB / 1.308 GB, free: 310.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/3.041, allocations: 5.656 kB / 1.308 GB, free: 310.4 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01611/3.057, allocations: 4.225 MB / 1.312 GB, free: 309.2 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0168/3.074, allocations: 4.675 MB / 1.317 GB, free: 307.4 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002796/3.077, allocations: 0.6452 MB / 1.317 GB, free: 307 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001456/3.078, allocations: 3.625 kB / 1.317 GB, free: 307 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007394/3.086, allocations: 426.4 kB / 1.318 GB, free: 307 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001316/3.087, allocations: 236.1 kB / 1.318 GB, free: 306.9 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005345/3.088, allocations: 67 kB / 1.318 GB, free: 306.9 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.003887/3.092, allocations: 1.159 MB / 1.319 GB, free: 306.4 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.009833/3.101, allocations: 1.364 MB / 1.321 GB, free: 306.4 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,60.0%) 52} * Non-linear torn systems: 1 {10 52} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009331/3.102, allocations: 134.1 kB / 1.321 GB, free: 306.3 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.02565/3.128, allocations: 6.899 MB / 1.327 GB, free: 303.7 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/3.128, allocations: 0 / 1.327 GB, free: 303.7 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0103/3.138, allocations: 2.488 MB / 1.33 GB, free: 302.8 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007901/3.146, allocations: 0.8328 MB / 1.331 GB, free: 302.6 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03445/3.181, allocations: 5.192 MB / 1.336 GB, free: 300.7 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01117/3.192, allocations: 2.419 MB / 1.338 GB, free: 299.8 MB / 0.8542 GB Notification: Performance of SimCode: time 2.234e-06/3.192, allocations: 2.062 kB / 1.338 GB, free: 299.8 MB / 0.8542 GB