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_RLC.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_RLC,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC",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.31/2.31, 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.001632/0.001631, allocations: 182.7 kB / 315.1 MB, free: 4.27 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.108/2.108, allocations: 205.1 MB / 0.5658 GB, free: 388 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.001263/0.001262, allocations: 90.72 kB / 0.67 GB, free: 5.582 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5721/0.5734, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.8038, allocations: 106.3 MB / 0.8835 GB, free: 13.35 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.744/1.548, allocations: 160.6 MB / 1.04 GB, free: 13.09 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003876/1.548, allocations: 91.56 kB / 1.04 GB, free: 13.04 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: 419 * Number of variables: 419 Notification: Performance of Generate backend data structure: time 0.3598/1.908, allocations: 61.36 MB / 1.1 GB, free: 9.289 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/1.908, allocations: 8 kB / 1.1 GB, free: 9.281 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005368/1.914, allocations: 465.3 kB / 1.101 GB, free: 8.824 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004135/1.918, allocations: 1.143 MB / 1.102 GB, free: 7.891 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.857e-05/1.918, allocations: 44 kB / 1.102 GB, free: 7.848 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005059/1.918, allocations: 88 kB / 1.102 GB, free: 7.762 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007298/1.926, allocations: 2.036 MB / 1.104 GB, free: 6.312 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009234/1.935, allocations: 2.617 MB / 1.107 GB, free: 3.57 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-05/1.935, allocations: 7.984 kB / 1.107 GB, free: 3.562 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002907/1.936, allocations: 4 kB / 1.107 GB, free: 3.559 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008276/1.936, allocations: 162.9 kB / 1.107 GB, free: 3.398 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03814/1.975, allocations: 13.94 MB / 1.12 GB, free: 4.383 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004468/1.979, allocations: 1.277 MB / 1.122 GB, free: 3.094 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00394/1.983, allocations: 1.109 MB / 1.123 GB, free: 1.984 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001097/1.983, allocations: 16.62 kB / 1.123 GB, free: 1.969 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.132e-05/1.983, allocations: 43.22 kB / 1.123 GB, free: 1.918 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=82): time 8.466e-06/1.983, allocations: 0 / 1.123 GB, free: 1.918 MB / 0.7292 GB Notification: Performance of matching and sorting (n=139): time 0.06029/2.044, allocations: 8.973 MB / 1.132 GB, free: 8.926 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.273e-05/2.044, allocations: 72.64 kB / 1.132 GB, free: 8.844 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002282/2.046, allocations: 0.8979 MB / 1.132 GB, free: 7.938 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0005156/2.047, allocations: 25.7 kB / 1.132 GB, free: 7.906 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005911/2.047, allocations: 0.6385 MB / 1.133 GB, free: 7.254 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008264/2.048, allocations: 469 kB / 1.134 GB, free: 6.789 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002929/2.048, allocations: 0 / 1.134 GB, free: 6.789 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0003271/2.049, allocations: 410.7 kB / 1.134 GB, free: 6.379 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004144/2.053, allocations: 1.499 MB / 1.135 GB, free: 4.879 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004559/2.057, allocations: 1.784 MB / 1.137 GB, free: 2.988 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008544/2.066, allocations: 2.114 MB / 1.139 GB, free: 0.8711 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-05/2.066, allocations: 4 kB / 1.139 GB, free: 0.8672 MB / 0.7448 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.0253/2.091, allocations: 5.78 MB / 1.145 GB, free: 11.06 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 4.251e-05/2.092, allocations: 4 kB / 1.145 GB, free: 11.06 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-05/2.092, allocations: 11.94 kB / 1.145 GB, free: 11.05 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01716/2.109, allocations: 2.728 MB / 1.148 GB, free: 8.309 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001852/2.111, allocations: 215.6 kB / 1.148 GB, free: 8.098 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04813/2.159, allocations: 14.42 MB / 1.162 GB, free: 9.391 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003816/2.163, allocations: 55.89 kB / 1.162 GB, free: 9.336 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007654/2.164, allocations: 163.9 kB / 1.162 GB, free: 9.176 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 92 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,100.0%) 12,(6,100.0%) 24} * Non-linear torn systems: 2 {6 12,6 24} Notification: Performance of prepare postOptimizeDAE: time 0.0007257/2.164, allocations: 132.7 kB / 1.162 GB, free: 9.039 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009105/2.165, allocations: 110.8 kB / 1.162 GB, free: 8.93 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02245/2.188, allocations: 5.251 MB / 1.167 GB, free: 3.652 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.192e-05/2.188, allocations: 12 kB / 1.167 GB, free: 3.641 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.083e-05/2.188, allocations: 12 kB / 1.167 GB, free: 3.629 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.625e-05/2.188, allocations: 3.984 kB / 1.167 GB, free: 3.625 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0402/2.228, allocations: 8.375 MB / 1.176 GB, free: 11.14 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.06e-05/2.228, allocations: 4 kB / 1.176 GB, free: 11.14 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001372/2.23, allocations: 111.8 kB / 1.176 GB, free: 11.03 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01943/2.249, allocations: 2.568 MB / 1.178 GB, free: 8.445 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004455/2.25, allocations: 39.94 kB / 1.178 GB, free: 8.406 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04005/2.29, allocations: 12.37 MB / 1.19 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.011e-05/2.29, allocations: 4 kB / 1.19 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02712/2.317, allocations: 5.116 MB / 1.195 GB, free: 6.441 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02217/2.339, allocations: 5.499 MB / 1.201 GB, free: 0.7617 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002103/2.341, allocations: 0.601 MB / 1.201 GB, free: 144 kB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006272/2.342, allocations: 4 kB / 1.201 GB, free: 140 kB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00225/2.344, allocations: 43.86 kB / 1.201 GB, free: 96 kB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004882/2.345, allocations: 97.16 kB / 1.201 GB, free: 0 / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004002/2.345, allocations: 115.9 kB / 1.202 GB, free: 15.89 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.001702/2.347, allocations: 0.6865 MB / 1.202 GB, free: 15.21 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.004353/2.351, allocations: 0.5117 MB / 1.203 GB, free: 14.7 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 58 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,100.0%) 6,(10,84.0%) 14} * Non-linear torn systems: 2 {6 12,6 24} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006472/2.352, allocations: 126.3 kB / 1.203 GB, free: 14.57 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.01819/2.37, allocations: 3.944 MB / 1.207 GB, free: 10.6 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/2.37, allocations: 0 / 1.207 GB, free: 10.6 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.009724/2.38, allocations: 2.28 MB / 1.209 GB, free: 8.305 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00189/2.382, allocations: 146.7 kB / 1.209 GB, free: 8.16 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01144/2.393, allocations: 3.34 MB / 1.212 GB, free: 4.73 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004147/2.398, allocations: 1.752 MB / 1.214 GB, free: 2.945 MB / 0.823 GB Notification: Performance of SimCode: time 3.547e-06/2.398, allocations: 0 / 1.214 GB, free: 2.945 MB / 0.823 GB