Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.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.ACSimpleGrid_N,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.192/2.192, allocations: 251 MB / 265.9 MB, free: 11.69 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001626/0.001626, allocations: 183.2 kB / 325.5 MB, free: 2.875 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.383/2.383, allocations: 205.4 MB / 0.5764 GB, free: 20.8 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.001149/0.001149, allocations: 88.06 kB / 0.6809 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004843/0.0004841, allocations: 16.38 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2156/0.2161, allocations: 106.3 MB / 0.8988 GB, free: 65.43 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9897/1.206, allocations: 186.2 MB / 1.081 GB, free: 57.81 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003555/1.206, allocations: 101.2 kB / 1.081 GB, free: 57.81 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.2704/1.477, allocations: 66.69 MB / 1.146 GB, free: 39.23 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.745e-06/1.477, allocations: 0 / 1.146 GB, free: 39.23 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001176/1.477, allocations: 35.19 kB / 1.146 GB, free: 39.23 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 425 * Number of variables: 425 Notification: Performance of Generate backend data structure: time 0.006241/1.483, allocations: 1.792 MB / 1.148 GB, free: 38.11 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/1.483, allocations: 7.719 kB / 1.148 GB, free: 38.11 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009558/1.484, allocations: 268.7 kB / 1.148 GB, free: 38.02 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005678/1.49, allocations: 0.6725 MB / 1.149 GB, free: 37.72 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003957/1.494, allocations: 1.236 MB / 1.15 GB, free: 37.22 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/1.494, allocations: 122.6 kB / 1.15 GB, free: 37.21 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005963/1.495, allocations: 157.9 kB / 1.15 GB, free: 37.21 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007214/1.502, allocations: 2.647 MB / 1.153 GB, free: 36.49 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.994e-05/1.502, allocations: 3.906 kB / 1.153 GB, free: 36.49 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003192/1.502, allocations: 65.3 kB / 1.153 GB, free: 36.49 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001334/1.502, allocations: 95.62 kB / 1.153 GB, free: 36.48 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006538/1.509, allocations: 2.217 MB / 1.155 GB, free: 36.12 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01915/1.528, allocations: 10.9 MB / 1.166 GB, free: 28.86 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/1.53, allocations: 0.7497 MB / 1.166 GB, free: 28.7 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001691/1.53, allocations: 93.09 kB / 1.166 GB, free: 28.6 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/1.53, allocations: 37.75 kB / 1.166 GB, free: 28.56 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 3.116e-06/1.53, allocations: 0 / 1.166 GB, free: 28.56 MB / 0.698 GB Notification: Performance of matching and sorting (n=70): time 0.04292/1.573, allocations: 8.392 MB / 1.175 GB, free: 25.38 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/1.573, allocations: 89.3 kB / 1.175 GB, free: 25.29 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001739/1.575, allocations: 0.8553 MB / 1.176 GB, free: 25.01 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002213/1.575, allocations: 40.52 kB / 1.176 GB, free: 24.98 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005165/1.576, allocations: 0.7831 MB / 1.176 GB, free: 24.44 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002805/1.576, allocations: 235.9 kB / 1.177 GB, free: 24.27 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001544/1.576, allocations: 18.5 kB / 1.177 GB, free: 24.27 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001601/1.577, allocations: 405.3 kB / 1.177 GB, free: 23.93 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001894/1.578, allocations: 0.7995 MB / 1.178 GB, free: 23.78 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002044/1.58, allocations: 1.159 MB / 1.179 GB, free: 23.19 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002231/1.583, allocations: 0.9978 MB / 1.18 GB, free: 23.01 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/1.583, allocations: 7.875 kB / 1.18 GB, free: 23.01 MB / 0.698 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.0137/1.596, allocations: 3.508 MB / 1.183 GB, free: 21.97 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001093/1.598, allocations: 4.274 MB / 1.187 GB, free: 17.46 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.675e-05/1.598, allocations: 9.594 kB / 1.187 GB, free: 17.46 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01234/1.61, allocations: 1.866 MB / 1.189 GB, free: 16.49 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/1.612, allocations: 230.5 kB / 1.19 GB, free: 16.27 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01524/1.627, allocations: 7.034 MB / 1.196 GB, free: 10.05 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002224/1.629, allocations: 183.7 kB / 1.197 GB, free: 9.867 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001706/1.629, allocations: 48 kB / 1.197 GB, free: 9.82 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/1.63, allocations: 8 kB / 1.197 GB, free: 9.812 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01072/1.64, allocations: 2.861 MB / 1.199 GB, free: 6.945 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.837e-05/1.64, allocations: 12 kB / 1.199 GB, free: 6.934 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007672/1.648, allocations: 1.157 MB / 1.201 GB, free: 5.777 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002049/1.65, allocations: 295.5 kB / 1.201 GB, free: 5.488 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01318/1.663, allocations: 5.842 MB / 1.207 GB, free: 15.51 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002038/1.665, allocations: 155.8 kB / 1.207 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001652/1.666, allocations: 51.98 kB / 1.207 GB, free: 15.3 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 95 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 12} * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.002487/1.668, allocations: 0.8979 MB / 1.208 GB, free: 14.4 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000391/1.669, allocations: 86.97 kB / 1.208 GB, free: 14.31 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01505/1.684, allocations: 3.113 MB / 1.211 GB, free: 11.18 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.169e-05/1.684, allocations: 11.94 kB / 1.211 GB, free: 11.17 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/1.684, allocations: 7.953 kB / 1.211 GB, free: 11.16 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.503e-05/1.684, allocations: 3.984 kB / 1.211 GB, free: 11.16 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02044/1.704, allocations: 5.164 MB / 1.216 GB, free: 5.914 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.862e-05/1.704, allocations: 3.938 kB / 1.216 GB, free: 5.91 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009188/1.705, allocations: 107.8 kB / 1.216 GB, free: 5.805 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01257/1.718, allocations: 1.788 MB / 1.218 GB, free: 4.012 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002145/1.718, allocations: 12 kB / 1.218 GB, free: 4 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02559/1.744, allocations: 9.99 MB / 1.227 GB, free: 9.746 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.744, allocations: 0 / 1.227 GB, free: 9.746 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01361/1.757, allocations: 3.11 MB / 1.23 GB, free: 6.539 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001164/1.759, allocations: 335.8 kB / 1.231 GB, free: 6.191 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002458/1.759, allocations: 12 kB / 1.231 GB, free: 6.18 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001595/1.76, allocations: 151.8 kB / 1.231 GB, free: 6.031 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004016/1.761, allocations: 60.44 kB / 1.231 GB, free: 5.973 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/1.761, allocations: 24 kB / 1.231 GB, free: 5.949 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.001637/1.763, allocations: 0.6746 MB / 1.232 GB, free: 5.281 MB / 0.7292 GB Notification: Performance of sort global known variables: time 7.41e-07/1.763, allocations: 0 / 1.232 GB, free: 5.281 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.003723/1.766, allocations: 0.6953 MB / 1.232 GB, free: 4.586 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 12} * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01524/1.782, allocations: 4.294 MB / 1.237 GB, free: 212 kB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.01248/1.794, allocations: 3.598 MB / 1.24 GB, free: 12.59 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.384e-05/1.794, allocations: 0 / 1.24 GB, free: 12.59 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.004152/1.798, allocations: 1.364 MB / 1.241 GB, free: 11.2 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001981/1.8, allocations: 232.5 kB / 1.242 GB, free: 10.97 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03944/1.84, allocations: 18.29 MB / 1.259 GB, free: 8.32 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002956/1.843, allocations: 1.753 MB / 1.261 GB, free: 6.535 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.00261/1.846, allocations: 0.5147 MB / 1.262 GB, free: 6.016 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001457/1.847, allocations: 0.5149 MB / 1.262 GB, free: 5.5 MB / 0.7605 GB Notification: Performance of SimCode: time 1.503e-06/1.847, allocations: 0 / 1.262 GB, free: 5.5 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1124/1.959, allocations: 40.15 MB / 1.301 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003183/1.96, allocations: 242.1 kB / 1.302 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.453/5.413, allocations: 0 / 1.302 GB, free: 13.43 MB / 0.8073 GB