Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") [: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 8.1.4-maint.8.1.x/package.mo): time 1.321/1.321, allocations: 289.8 MB / 297.1 MB, free: 6.629 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001031/0.001031, allocations: 173.3 kB / 366.3 MB, free: 1.934 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9909/0.9909, allocations: 205.1 MB / 0.6256 GB, free: 5.785 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007387/0.0007387, allocations: 100.5 kB / 0.7396 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.084e-06/7.114e-06, allocations: 4 kB / 0.859 GB, free: 13.28 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3919/0.3919, allocations: 116.3 MB / 0.9726 GB, free: 68.19 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.154/0.546, allocations: 161.6 MB / 1.13 GB, free: 2.828 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002234/0.5462, allocations: 99.86 kB / 1.13 GB, free: 2.73 MB / 0.7292 GB Notification: Performance of FrontEnd: time 0.03949/0.5857, allocations: 17.22 MB / 1.147 GB, free: 1.387 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.351e-05/0.5858, allocations: 4 kB / 1.147 GB, free: 1.383 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0009097/0.5867, allocations: 0.6171 MB / 1.148 GB, free: 0.7109 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 2.869e-05/0.5867, allocations: 8.031 kB / 1.148 GB, free: 0.7031 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007394/0.5875, allocations: 103.5 kB / 1.148 GB, free: 0.6016 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/0.5878, allocations: 285.9 kB / 1.148 GB, free: 288 kB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.5878, allocations: 8 kB / 1.148 GB, free: 280 kB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.211e-05/0.5879, allocations: 12 kB / 1.148 GB, free: 268 kB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004013/0.5883, allocations: 252.8 kB / 1.149 GB, free: 16 kB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000472/0.5888, allocations: 353.2 kB / 1.149 GB, free: 15.64 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.5888, allocations: 0 / 1.149 GB, free: 15.64 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.857e-05/0.5888, allocations: 0 / 1.149 GB, free: 15.64 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.52e-05/0.5889, allocations: 28.36 kB / 1.149 GB, free: 15.61 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.5906, allocations: 1.615 MB / 1.15 GB, free: 13.88 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004833/0.5911, allocations: 333.5 kB / 1.151 GB, free: 13.53 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002101/0.5914, allocations: 161.7 kB / 1.151 GB, free: 13.37 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001419/0.5915, allocations: 93.09 kB / 1.151 GB, free: 13.26 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002758/0.5918, allocations: 218.3 kB / 1.151 GB, free: 13.03 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=27): time 1.343e-06/0.5918, allocations: 0 / 1.151 GB, free: 13.03 MB / 0.7605 GB Notification: Performance of matching and sorting (n=28): time 0.000832/0.5926, allocations: 426.8 kB / 1.152 GB, free: 12.6 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.903e-05/0.5927, allocations: 89.14 kB / 1.152 GB, free: 12.5 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001587/0.5929, allocations: 191 kB / 1.152 GB, free: 12.3 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 2.99e-05/0.5929, allocations: 29.7 kB / 1.152 GB, free: 12.27 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 6.886e-05/0.593, allocations: 148.1 kB / 1.152 GB, free: 12.12 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 7.372e-05/0.5931, allocations: 86.75 kB / 1.152 GB, free: 12.03 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.862e-05/0.5931, allocations: 0 / 1.152 GB, free: 12.03 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 9.963e-05/0.5932, allocations: 334.7 kB / 1.152 GB, free: 11.7 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001903/0.5934, allocations: 128.3 kB / 1.153 GB, free: 11.57 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.5936, allocations: 205.4 kB / 1.153 GB, free: 11.34 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002704/0.5939, allocations: 172.1 kB / 1.153 GB, free: 11.17 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.5939, allocations: 0 / 1.153 GB, free: 11.17 MB / 0.7605 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007192/0.5946, allocations: 423.5 kB / 1.153 GB, free: 10.75 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002802/0.5949, allocations: 0.8811 MB / 1.154 GB, free: 9.801 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.5949, allocations: 4 kB / 1.154 GB, free: 9.797 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001911/0.5951, allocations: 36.83 kB / 1.154 GB, free: 9.758 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004121/0.5955, allocations: 95.81 kB / 1.154 GB, free: 9.664 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/0.5967, allocations: 1.41 MB / 1.156 GB, free: 8.133 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003371/0.597, allocations: 47.92 kB / 1.156 GB, free: 8.086 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.176e-05/0.5971, allocations: 15.89 kB / 1.156 GB, free: 8.07 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 4.799e-06/0.5971, allocations: 4 kB / 1.156 GB, free: 8.066 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006149/0.5977, allocations: 349.2 kB / 1.156 GB, free: 7.723 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.5977, allocations: 8.281 kB / 1.156 GB, free: 7.715 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001185/0.5979, allocations: 36.83 kB / 1.156 GB, free: 7.676 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003712/0.5982, allocations: 95.81 kB / 1.156 GB, free: 7.582 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/0.5993, allocations: 1.398 MB / 1.158 GB, free: 6.066 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002965/0.5996, allocations: 51.83 kB / 1.158 GB, free: 6.016 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.674e-05/0.5996, allocations: 11.98 kB / 1.158 GB, free: 6.004 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001054/0.5997, allocations: 123 kB / 1.158 GB, free: 5.879 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.165e-05/0.5998, allocations: 23.72 kB / 1.158 GB, free: 5.855 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006829/0.6004, allocations: 391.9 kB / 1.158 GB, free: 5.461 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.6005, allocations: 4 kB / 1.158 GB, free: 5.457 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.6005, allocations: 0 / 1.158 GB, free: 5.457 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.6005, allocations: 4 kB / 1.158 GB, free: 5.453 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005188/0.601, allocations: 0.5159 MB / 1.159 GB, free: 4.887 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.601, allocations: 3.906 kB / 1.159 GB, free: 4.883 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000392/0.6014, allocations: 79.97 kB / 1.159 GB, free: 4.805 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001114/0.6015, allocations: 36.83 kB / 1.159 GB, free: 4.766 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.6016, allocations: 4 kB / 1.159 GB, free: 4.762 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009247/0.6025, allocations: 1.337 MB / 1.16 GB, free: 3.312 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.6025, allocations: 8.062 kB / 1.16 GB, free: 3.305 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006229/0.6031, allocations: 0.5073 MB / 1.161 GB, free: 2.75 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.6033, allocations: 132.7 kB / 1.161 GB, free: 2.602 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.765e-05/0.6033, allocations: 3.984 kB / 1.161 GB, free: 2.598 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003157/0.6037, allocations: 35.97 kB / 1.161 GB, free: 2.562 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.006e-05/0.6038, allocations: 31.86 kB / 1.161 GB, free: 2.531 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.69e-05/0.6038, allocations: 12 kB / 1.161 GB, free: 2.52 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0001204/0.6039, allocations: 156.5 kB / 1.161 GB, free: 2.367 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0004947/0.6044, allocations: 131.9 kB / 1.161 GB, free: 2.238 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001471/0.6046, allocations: 127.8 kB / 1.161 GB, free: 2.105 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001017/0.6056, allocations: 0.7582 MB / 1.162 GB, free: 1.316 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.6056, allocations: 0 / 1.162 GB, free: 1.316 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0003721/0.606, allocations: 283.2 kB / 1.162 GB, free: 1.031 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002934/0.6063, allocations: 40.41 kB / 1.162 GB, free: 0.9922 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009671/0.6073, allocations: 482 kB / 1.163 GB, free: 0.4922 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004343/0.6077, allocations: 0.8197 MB / 1.164 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of SimCode: time 2.51e-07/0.6077, allocations: 0 / 1.164 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of Templates: time 0.008823/0.6165, allocations: 5.696 MB / 1.169 GB, free: 9.984 MB / 0.7761 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & ./Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1)