Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.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.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.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.323/1.323, allocations: 289.8 MB / 297.1 MB, free: 10.66 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009805/0.0009805, allocations: 186.4 kB / 366.3 MB, free: 6.344 MB / 302.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.009/1.009, allocations: 205.1 MB / 0.6256 GB, free: 9.762 MB / 478.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008135/0.0008135, allocations: 85.41 kB / 0.7395 GB, free: 43.39 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 7.524e-06/7.615e-06, allocations: 4 kB / 0.859 GB, free: 1.141 MB / 0.5919 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4462/0.4463, allocations: 116.3 MB / 0.9726 GB, free: 76.98 MB / 0.67 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1586/0.6049, allocations: 160.2 MB / 1.129 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/0.6052, allocations: 92.45 kB / 1.129 GB, free: 9.949 MB / 0.7325 GB Notification: Performance of FrontEnd: time 0.03907/0.6443, allocations: 16.58 MB / 1.145 GB, free: 9.332 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.153e-05/0.6444, allocations: 8 kB / 1.145 GB, free: 9.324 MB / 0.7481 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.00116/0.6456, allocations: 0.6094 MB / 1.146 GB, free: 8.66 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.6456, allocations: 8.031 kB / 1.146 GB, free: 8.652 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008492/0.6465, allocations: 103.5 kB / 1.146 GB, free: 8.551 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004236/0.6469, allocations: 290 kB / 1.146 GB, free: 8.227 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.6469, allocations: 4 kB / 1.146 GB, free: 8.223 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.996e-05/0.647, allocations: 12 kB / 1.146 GB, free: 8.211 MB / 0.7481 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000447/0.6474, allocations: 256.8 kB / 1.147 GB, free: 7.961 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005127/0.648, allocations: 345.3 kB / 1.147 GB, free: 7.594 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.648, allocations: 11.94 kB / 1.147 GB, free: 7.582 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.212e-05/0.648, allocations: 0 / 1.147 GB, free: 7.582 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.766e-05/0.6481, allocations: 24.36 kB / 1.147 GB, free: 7.555 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001947/0.65, allocations: 1.611 MB / 1.148 GB, free: 5.828 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005146/0.6506, allocations: 343.2 kB / 1.149 GB, free: 5.473 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002155/0.6508, allocations: 157.7 kB / 1.149 GB, free: 5.312 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001575/0.651, allocations: 93.08 kB / 1.149 GB, free: 5.203 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002821/0.6513, allocations: 216.4 kB / 1.149 GB, free: 4.977 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=27): time 2.134e-06/0.6513, allocations: 0 / 1.149 GB, free: 4.977 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28): time 0.0009029/0.6522, allocations: 438.3 kB / 1.15 GB, free: 4.539 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.583e-05/0.6522, allocations: 81.11 kB / 1.15 GB, free: 4.441 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.6524, allocations: 179.1 kB / 1.15 GB, free: 4.262 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.6524, allocations: 29.69 kB / 1.15 GB, free: 4.227 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 8.103e-05/0.6525, allocations: 156.1 kB / 1.15 GB, free: 4.07 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 6.666e-05/0.6526, allocations: 86.75 kB / 1.15 GB, free: 3.984 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.884e-05/0.6526, allocations: 0 / 1.15 GB, free: 3.984 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001024/0.6527, allocations: 342.7 kB / 1.15 GB, free: 3.641 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002028/0.6529, allocations: 132.2 kB / 1.151 GB, free: 3.512 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002261/0.6532, allocations: 205.4 kB / 1.151 GB, free: 3.281 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002865/0.6535, allocations: 152.1 kB / 1.151 GB, free: 3.133 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.6535, allocations: 1.406 kB / 1.151 GB, free: 3.133 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007603/0.6542, allocations: 439.1 kB / 1.151 GB, free: 2.695 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002734/0.6545, allocations: 0.8697 MB / 1.152 GB, free: 1.758 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.6545, allocations: 4 kB / 1.152 GB, free: 1.754 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002103/0.6548, allocations: 44.81 kB / 1.152 GB, free: 1.707 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004046/0.6552, allocations: 91.81 kB / 1.152 GB, free: 1.617 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001199/0.6564, allocations: 1.411 MB / 1.154 GB, free: 88 kB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003387/0.6567, allocations: 51.91 kB / 1.154 GB, free: 36 kB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.443e-05/0.6568, allocations: 13.48 kB / 1.154 GB, free: 24 kB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.6568, allocations: 7.906 kB / 1.154 GB, free: 16 kB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006745/0.6575, allocations: 353.3 kB / 1.154 GB, free: 15.66 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.6575, allocations: 0 / 1.154 GB, free: 15.66 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001269/0.6576, allocations: 44.66 kB / 1.154 GB, free: 15.62 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003667/0.658, allocations: 88.16 kB / 1.154 GB, free: 15.54 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/0.659, allocations: 1.394 MB / 1.156 GB, free: 14.03 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003146/0.6593, allocations: 54.72 kB / 1.156 GB, free: 13.98 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.987e-05/0.6594, allocations: 16 kB / 1.156 GB, free: 13.96 MB / 0.7637 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.0001139/0.6595, allocations: 111 kB / 1.156 GB, free: 13.85 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.478e-05/0.6596, allocations: 27.72 kB / 1.156 GB, free: 13.82 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006849/0.6602, allocations: 387.9 kB / 1.156 GB, free: 13.43 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.6603, allocations: 4 kB / 1.156 GB, free: 13.42 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.6603, allocations: 0 / 1.156 GB, free: 13.42 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.6603, allocations: 4.125 kB / 1.156 GB, free: 13.42 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005544/0.6608, allocations: 0.5218 MB / 1.157 GB, free: 12.85 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.6609, allocations: 3.984 kB / 1.157 GB, free: 12.84 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003923/0.6613, allocations: 83.92 kB / 1.157 GB, free: 12.76 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001194/0.6614, allocations: 40.83 kB / 1.157 GB, free: 12.72 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.6614, allocations: 0 / 1.157 GB, free: 12.72 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009433/0.6624, allocations: 1.336 MB / 1.158 GB, free: 11.27 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.6624, allocations: 0 / 1.158 GB, free: 11.27 MB / 0.7637 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006361/0.663, allocations: 0.5074 MB / 1.159 GB, free: 10.71 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.6632, allocations: 136.7 kB / 1.159 GB, free: 10.56 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.03e-05/0.6632, allocations: 4 kB / 1.159 GB, free: 10.56 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003216/0.6635, allocations: 39.95 kB / 1.159 GB, free: 10.52 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.563e-05/0.6636, allocations: 27.86 kB / 1.159 GB, free: 10.49 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.017e-05/0.6637, allocations: 12 kB / 1.159 GB, free: 10.48 MB / 0.7637 GB Notification: Performance of sort global known variables: time 0.0001211/0.6638, allocations: 160.5 kB / 1.159 GB, free: 10.33 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0005336/0.6643, allocations: 124 kB / 1.159 GB, free: 10.21 MB / 0.7637 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.0001695/0.6645, allocations: 123.8 kB / 1.159 GB, free: 10.08 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001071/0.6656, allocations: 0.7708 MB / 1.16 GB, free: 9.277 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.6656, allocations: 0 / 1.16 GB, free: 9.277 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0003803/0.666, allocations: 270.1 kB / 1.16 GB, free: 9.004 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.6663, allocations: 37.55 kB / 1.16 GB, free: 8.973 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.6674, allocations: 486.4 kB / 1.161 GB, free: 8.469 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000471/0.6679, allocations: 0.8244 MB / 1.162 GB, free: 7.617 MB / 0.7637 GB Notification: Performance of SimCode: time 2.2e-07/0.6679, allocations: 0 / 1.162 GB, free: 7.617 MB / 0.7637 GB Notification: Performance of Templates: time 0.009959/0.6779, allocations: 5.696 MB / 1.167 GB, free: 2.023 MB / 0.7637 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)