Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.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.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL",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.232/2.232, allocations: 248.6 MB / 255.9 MB, free: 7.191 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.001648/0.001647, allocations: 185.2 kB / 315.1 MB, free: 4.297 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.233/2.233, allocations: 205.1 MB / 0.5658 GB, free: 484 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.001299/0.001298, allocations: 87.28 kB / 0.67 GB, free: 5.691 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4757/0.4771, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.7226, allocations: 106.2 MB / 0.8835 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8866/1.609, allocations: 159.3 MB / 1.039 GB, free: 14.32 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004939/1.61, allocations: 90.5 kB / 1.039 GB, free: 14.27 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 913 * Number of variables: 913 Notification: Performance of Generate backend data structure: time 0.6994/2.309, allocations: 130.5 MB / 1.167 GB, free: 5.492 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 6.83e-05/2.309, allocations: 12 kB / 1.167 GB, free: 5.48 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01225/2.322, allocations: 0.9825 MB / 1.168 GB, free: 4.492 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008093/2.33, allocations: 2.272 MB / 1.17 GB, free: 2.164 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002107/2.33, allocations: 107.9 kB / 1.17 GB, free: 2.059 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00143/2.332, allocations: 180 kB / 1.17 GB, free: 1.883 MB / 0.7761 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01451/2.346, allocations: 3.778 MB / 1.174 GB, free: 14.1 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02658/2.373, allocations: 5.289 MB / 1.179 GB, free: 8.477 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002641/2.373, allocations: 15.94 kB / 1.179 GB, free: 8.461 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001968/2.375, allocations: 8 kB / 1.179 GB, free: 8.453 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001586/2.377, allocations: 346.2 kB / 1.179 GB, free: 8.113 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0795/2.456, allocations: 28.73 MB / 1.207 GB, free: 8.711 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003902/2.46, allocations: 1.43 MB / 1.209 GB, free: 7.273 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004474/2.465, allocations: 1.507 MB / 1.21 GB, free: 5.766 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001129/2.465, allocations: 20.98 kB / 1.21 GB, free: 5.742 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.064e-05/2.465, allocations: 51.55 kB / 1.21 GB, free: 5.684 MB / 0.823 GB Notification: Performance of pre-optimization done (n=110): time 4.228e-06/2.465, allocations: 0 / 1.21 GB, free: 5.684 MB / 0.823 GB Notification: Performance of matching and sorting (n=179): time 0.08437/2.549, allocations: 13.39 MB / 1.223 GB, free: 8.27 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.987e-05/2.55, allocations: 73.41 kB / 1.223 GB, free: 8.188 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003501/2.553, allocations: 1.054 MB / 1.224 GB, free: 7.129 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 0.000771/2.554, allocations: 25.7 kB / 1.224 GB, free: 7.098 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.002063/2.556, allocations: 1.304 MB / 1.226 GB, free: 5.773 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.00181/2.558, allocations: 0.585 MB / 1.226 GB, free: 5.18 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006831/2.559, allocations: 0 / 1.226 GB, free: 5.18 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000402/2.559, allocations: 381.9 kB / 1.227 GB, free: 4.801 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007558/2.567, allocations: 1.851 MB / 1.228 GB, free: 2.949 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008437/2.575, allocations: 2.358 MB / 1.231 GB, free: 392 kB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01216/2.587, allocations: 2.426 MB / 1.233 GB, free: 13.96 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.946e-05/2.587, allocations: 4 kB / 1.233 GB, free: 13.95 MB / 0.8542 GB Notification: Performance of matching and sorting (n=250) (initialization): time 0.04553/2.633, allocations: 7.681 MB / 1.241 GB, free: 6.238 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.101e-05/2.633, allocations: 7.906 kB / 1.241 GB, free: 6.23 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.521e-05/2.633, allocations: 16 kB / 1.241 GB, free: 6.215 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03878/2.672, allocations: 4.122 MB / 1.245 GB, free: 2.074 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003753/2.676, allocations: 283.5 kB / 1.245 GB, free: 1.797 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4108/3.087, allocations: 19.35 MB / 1.264 GB, free: 327.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003145/3.09, allocations: 67.14 kB / 1.264 GB, free: 327.9 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000534/3.09, allocations: 178.4 kB / 1.264 GB, free: 327.9 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 142 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(11,91.7%) 13,(6,100.0%) 12,(6,100.0%) 6} * Non-linear torn systems: 3 {12 12,6 12,6 6} Notification: Performance of prepare postOptimizeDAE: time 0.0006725/3.091, allocations: 145.7 kB / 1.264 GB, free: 327.8 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006674/3.092, allocations: 187.8 kB / 1.264 GB, free: 327.8 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02718/3.119, allocations: 7.728 MB / 1.272 GB, free: 327.7 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.056e-05/3.119, allocations: 21.31 kB / 1.272 GB, free: 327.7 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.267e-05/3.119, allocations: 14.22 kB / 1.272 GB, free: 327.7 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.143e-05/3.119, allocations: 11.2 kB / 1.272 GB, free: 327.7 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03768/3.157, allocations: 11.72 MB / 1.283 GB, free: 327.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.439e-05/3.157, allocations: 7.531 kB / 1.283 GB, free: 327.1 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001412/3.158, allocations: 158.4 kB / 1.284 GB, free: 327.1 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02587/3.184, allocations: 4.031 MB / 1.288 GB, free: 327 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008672/3.185, allocations: 55.81 kB / 1.288 GB, free: 327 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06605/3.251, allocations: 18.92 MB / 1.306 GB, free: 321.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.915e-05/3.251, allocations: 10.41 kB / 1.306 GB, free: 321.7 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03541/3.287, allocations: 7.937 MB / 1.314 GB, free: 319.4 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03806/3.325, allocations: 8.339 MB / 1.322 GB, free: 316 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002405/3.327, allocations: 0.6969 MB / 1.323 GB, free: 315.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009613/3.328, allocations: 7.844 kB / 1.323 GB, free: 315.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00283/3.331, allocations: 74.44 kB / 1.323 GB, free: 315.6 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006077/3.332, allocations: 144.1 kB / 1.323 GB, free: 315.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000411/3.332, allocations: 142 kB / 1.323 GB, free: 315.6 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.00167/3.334, allocations: 0.7982 MB / 1.324 GB, free: 315.3 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.006779/3.341, allocations: 0.8163 MB / 1.325 GB, free: 315.3 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 74 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,100.0%) 6,(6,100.0%) 12,(11,91.7%) 13} * Non-linear torn systems: 3 {6 6,6 12,12 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008384/3.342, allocations: 146.3 kB / 1.325 GB, free: 315.2 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.02543/3.367, allocations: 5.817 MB / 1.33 GB, free: 313.4 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.915e-05/3.367, allocations: 0 / 1.33 GB, free: 313.4 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.02202/3.389, allocations: 3.598 MB / 1.334 GB, free: 312.4 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006273/3.396, allocations: 391.7 kB / 1.334 GB, free: 312.3 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02701/3.423, allocations: 5.728 MB / 1.34 GB, free: 308.2 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006079/3.429, allocations: 2.786 MB / 1.343 GB, free: 306 MB / 0.8542 GB Notification: Performance of SimCode: time 1.633e-06/3.429, allocations: 0 / 1.343 GB, free: 306 MB / 0.8542 GB