Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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.DCLinesLinearized,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",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.341/2.341, allocations: 248.6 MB / 255.9 MB, free: 360 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001713/0.001713, allocations: 188.8 kB / 315.1 MB, free: 7.773 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.304/2.304, allocations: 205.1 MB / 0.5658 GB, free: 25.47 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001218/0.001218, allocations: 87.27 kB / 0.67 GB, free: 2.945 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.2999/0.3011, allocations: 112.4 MB / 0.7797 GB, free: 2.465 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5794/0.8806, allocations: 106.2 MB / 0.8835 GB, free: 77.29 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8287/1.709, allocations: 182.5 MB / 1.062 GB, free: 54.05 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004239/1.71, allocations: 89.73 kB / 1.062 GB, free: 54.05 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.8006/2.51, allocations: 151.9 MB / 1.21 GB, free: 14.03 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 6.56e-05/2.511, allocations: 12 kB / 1.21 GB, free: 14.02 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04954/2.56, allocations: 3.195 MB / 1.213 GB, free: 10.81 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01985/2.58, allocations: 2.571 MB / 1.216 GB, free: 8.223 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009338/2.581, allocations: 385.8 kB / 1.216 GB, free: 7.781 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002258/2.583, allocations: 136 kB / 1.216 GB, free: 7.648 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01762/2.601, allocations: 3.586 MB / 1.22 GB, free: 4.055 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01624/2.617, allocations: 3.693 MB / 1.223 GB, free: 232 kB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001002/2.617, allocations: 7.922 kB / 1.223 GB, free: 224 kB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00111/2.619, allocations: 4 kB / 1.223 GB, free: 220 kB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002466/2.619, allocations: 152.8 kB / 1.224 GB, free: 64 kB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05154/2.67, allocations: 14.53 MB / 1.238 GB, free: 480 kB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003598/2.674, allocations: 1.127 MB / 1.239 GB, free: 15.33 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003226/2.677, allocations: 1.105 MB / 1.24 GB, free: 14.23 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001902/2.678, allocations: 24.89 kB / 1.24 GB, free: 14.21 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003784/2.681, allocations: 1.371 MB / 1.241 GB, free: 12.78 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=163): time 5.47e-06/2.681, allocations: 0 / 1.241 GB, free: 12.78 MB / 0.7605 GB Notification: Performance of matching and sorting (n=250): time 0.04771/2.729, allocations: 8.692 MB / 1.25 GB, free: 4.109 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005591/2.73, allocations: 0.8983 MB / 1.251 GB, free: 3 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005002/2.735, allocations: 1.572 MB / 1.252 GB, free: 1.418 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0008286/2.736, allocations: 33.7 kB / 1.252 GB, free: 1.379 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.001556/2.737, allocations: 0.9587 MB / 1.253 GB, free: 416 kB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.001963/2.739, allocations: 0.7812 MB / 1.254 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004038/2.74, allocations: 4 kB / 1.254 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002655/2.74, allocations: 394.7 kB / 1.254 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004791/2.745, allocations: 1.406 MB / 1.256 GB, free: 13.81 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005389/2.75, allocations: 1.781 MB / 1.257 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00487/2.755, allocations: 1.477 MB / 1.259 GB, free: 10.4 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.382e-05/2.755, allocations: 0 / 1.259 GB, free: 10.4 MB / 0.7761 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.0313/2.787, allocations: 5.159 MB / 1.264 GB, free: 5.223 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/2.787, allocations: 4 kB / 1.264 GB, free: 5.219 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.483e-05/2.787, allocations: 4.344 kB / 1.264 GB, free: 5.215 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01989/2.807, allocations: 2.765 MB / 1.267 GB, free: 2.445 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006758/2.813, allocations: 0.6281 MB / 1.267 GB, free: 1.816 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07136/2.885, allocations: 15.47 MB / 1.282 GB, free: 2.113 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00882/2.894, allocations: 431.5 kB / 1.283 GB, free: 1.691 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009088/2.895, allocations: 87.97 kB / 1.283 GB, free: 1.605 MB / 0.7917 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 (162): * Single equations (assignments): 155 * 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 {9 63} Notification: Performance of prepare postOptimizeDAE: time 0.00094/2.896, allocations: 157.2 kB / 1.283 GB, free: 1.449 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001149/2.897, allocations: 304.4 kB / 1.283 GB, free: 1.148 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00131/2.898, allocations: 313.2 kB / 1.284 GB, free: 0.832 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.426e-05/2.898, allocations: 24 kB / 1.284 GB, free: 0.8086 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-05/2.898, allocations: 23.89 kB / 1.284 GB, free: 0.7852 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.032e-05/2.898, allocations: 11.95 kB / 1.284 GB, free: 0.7734 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008799/2.907, allocations: 3.329 MB / 1.287 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-05/2.907, allocations: 0 / 1.287 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008528/2.916, allocations: 0.554 MB / 1.287 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02216/2.938, allocations: 2.741 MB / 1.29 GB, free: 10.14 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007644/2.939, allocations: 15.97 kB / 1.29 GB, free: 10.12 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07132/3.01, allocations: 15.47 MB / 1.305 GB, free: 10.43 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.219e-05/3.01, allocations: 7.906 kB / 1.305 GB, free: 10.42 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02461/3.035, allocations: 4.952 MB / 1.31 GB, free: 5.469 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02723/3.062, allocations: 5.404 MB / 1.315 GB, free: 76 kB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003305/3.065, allocations: 0.6847 MB / 1.316 GB, free: 15.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001573/3.067, allocations: 4 kB / 1.316 GB, free: 15.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009113/3.076, allocations: 431.5 kB / 1.316 GB, free: 14.94 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001626/3.078, allocations: 265.5 kB / 1.317 GB, free: 14.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005868/3.079, allocations: 71.97 kB / 1.317 GB, free: 14.61 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.003516/3.082, allocations: 1.161 MB / 1.318 GB, free: 13.44 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.006265/3.088, allocations: 0.8983 MB / 1.319 GB, free: 12.54 MB / 0.8386 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 (118): * Single equations (assignments): 106 * 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 {8 64} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009381/3.089, allocations: 147.1 kB / 1.319 GB, free: 12.39 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.03619/3.126, allocations: 4.927 MB / 1.324 GB, free: 7.41 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/3.126, allocations: 192 / 1.324 GB, free: 7.41 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.03811/3.164, allocations: 3.177 MB / 1.327 GB, free: 4.211 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008367/3.172, allocations: 0.8414 MB / 1.328 GB, free: 3.375 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02993/3.202, allocations: 5.208 MB / 1.333 GB, free: 14.13 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008094/3.21, allocations: 2.405 MB / 1.335 GB, free: 11.69 MB / 0.8542 GB Notification: Performance of SimCode: time 1.894e-06/3.21, allocations: 0 / 1.335 GB, free: 11.69 MB / 0.8542 GB