Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.681/1.681, allocations: 390.4 MB / 397.7 MB, free: 1.941 MB / 307 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008988/0.0008988, allocations: 173.3 kB / 490.8 MB, free: 7.496 MB / 403 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.061/1.061, allocations: 221.3 MB / 0.7863 GB, free: 228 kB / 0.5498 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007906/0.0007906, allocations: 88.67 kB / 0.9264 GB, free: 0.6211 MB / 0.6904 GB Notification: Performance of FrontEnd - loaded program: time 5.38e-06/5.39e-06, allocations: 4 kB / 1.072 GB, free: 137.5 MB / 0.7217 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1646/0.1646, allocations: 143 MB / 1.212 GB, free: 10.56 MB / 0.7373 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4594/0.624, allocations: 173 MB / 1.38 GB, free: 5.027 MB / 0.8467 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002048/0.6242, allocations: 87.94 kB / 1.381 GB, free: 4.941 MB / 0.8467 GB Notification: Performance of FrontEnd: time 0.0405/0.6647, allocations: 18.85 MB / 1.399 GB, free: 1.922 MB / 0.8623 GB Notification: Performance of Transformations before backend: time 1.293e-05/0.6648, allocations: 4 kB / 1.399 GB, free: 1.918 MB / 0.8623 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.0008734/0.6656, allocations: 0.6249 MB / 1.4 GB, free: 1.242 MB / 0.8623 GB Notification: Performance of prepare preOptimizeDAE: time 2.956e-05/0.6657, allocations: 8.031 kB / 1.4 GB, free: 1.234 MB / 0.8623 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007237/0.6664, allocations: 103.5 kB / 1.4 GB, free: 1.133 MB / 0.8623 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.6667, allocations: 274.3 kB / 1.4 GB, free: 0.8242 MB / 0.8623 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.6668, allocations: 8 kB / 1.4 GB, free: 0.8164 MB / 0.8623 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.236e-05/0.6668, allocations: 15.94 kB / 1.4 GB, free: 0.8008 MB / 0.8623 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003858/0.6672, allocations: 248.8 kB / 1.4 GB, free: 0.5586 MB / 0.8623 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004441/0.6676, allocations: 353.3 kB / 1.401 GB, free: 188 kB / 0.8623 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.6677, allocations: 7.906 kB / 1.401 GB, free: 180 kB / 0.8623 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.924e-05/0.6677, allocations: 4 kB / 1.401 GB, free: 176 kB / 0.8623 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.182e-05/0.6677, allocations: 24.36 kB / 1.401 GB, free: 148 kB / 0.8623 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.6695, allocations: 1.603 MB / 1.402 GB, free: 14.43 MB / 0.8779 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00047/0.6699, allocations: 337.5 kB / 1.402 GB, free: 14.07 MB / 0.8779 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/0.6702, allocations: 155.5 kB / 1.403 GB, free: 13.92 MB / 0.8779 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000136/0.6703, allocations: 93.09 kB / 1.403 GB, free: 13.81 MB / 0.8779 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002626/0.6706, allocations: 218.8 kB / 1.403 GB, free: 13.58 MB / 0.8779 GB Notification: Performance of pre-optimization done (n=27): time 1.362e-06/0.6706, allocations: 3.938 kB / 1.403 GB, free: 13.57 MB / 0.8779 GB Notification: Performance of matching and sorting (n=28): time 0.0008115/0.6714, allocations: 422.7 kB / 1.403 GB, free: 13.15 MB / 0.8779 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.215e-05/0.6714, allocations: 85.09 kB / 1.403 GB, free: 13.05 MB / 0.8779 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.6716, allocations: 194.9 kB / 1.404 GB, free: 12.85 MB / 0.8779 GB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.6716, allocations: 25.7 kB / 1.404 GB, free: 12.82 MB / 0.8779 GB Notification: Performance of collectInitialEqns (initialization): time 7.086e-05/0.6717, allocations: 156.2 kB / 1.404 GB, free: 12.66 MB / 0.8779 GB Notification: Performance of collectInitialBindings (initialization): time 6.528e-05/0.6718, allocations: 90.69 kB / 1.404 GB, free: 12.57 MB / 0.8779 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.805e-05/0.6718, allocations: 0 / 1.404 GB, free: 12.57 MB / 0.8779 GB Notification: Performance of setup shared object (initialization): time 8.817e-05/0.6719, allocations: 338.7 kB / 1.404 GB, free: 12.23 MB / 0.8779 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001829/0.6721, allocations: 128.3 kB / 1.404 GB, free: 12.11 MB / 0.8779 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002151/0.6723, allocations: 213.8 kB / 1.404 GB, free: 11.87 MB / 0.8779 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002689/0.6726, allocations: 160.8 kB / 1.405 GB, free: 11.71 MB / 0.8779 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.6726, allocations: 4 kB / 1.405 GB, free: 11.71 MB / 0.8779 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006878/0.6733, allocations: 423.7 kB / 1.405 GB, free: 11.29 MB / 0.8779 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002522/0.6735, allocations: 0.8814 MB / 1.406 GB, free: 10.34 MB / 0.8779 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.6736, allocations: 4 kB / 1.406 GB, free: 10.33 MB / 0.8779 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001872/0.6737, allocations: 48.81 kB / 1.406 GB, free: 10.28 MB / 0.8779 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003969/0.6742, allocations: 83.88 kB / 1.406 GB, free: 10.2 MB / 0.8779 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001066/0.6752, allocations: 1.422 MB / 1.407 GB, free: 8.652 MB / 0.8779 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003142/0.6756, allocations: 43.97 kB / 1.407 GB, free: 8.609 MB / 0.8779 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.29e-05/0.6756, allocations: 16 kB / 1.407 GB, free: 8.594 MB / 0.8779 GB Notification: Performance of prepare postOptimizeDAE: time 5.15e-06/0.6756, allocations: 4 kB / 1.407 GB, free: 8.59 MB / 0.8779 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005956/0.6762, allocations: 353.1 kB / 1.408 GB, free: 8.242 MB / 0.8779 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.806e-06/0.6762, allocations: 0 / 1.408 GB, free: 8.242 MB / 0.8779 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001211/0.6764, allocations: 40.83 kB / 1.408 GB, free: 8.199 MB / 0.8779 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000349/0.6767, allocations: 88.16 kB / 1.408 GB, free: 8.113 MB / 0.8779 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009425/0.6777, allocations: 1.402 MB / 1.409 GB, free: 6.594 MB / 0.8779 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002933/0.678, allocations: 43.97 kB / 1.409 GB, free: 6.551 MB / 0.8779 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.969e-05/0.678, allocations: 16 kB / 1.409 GB, free: 6.535 MB / 0.8779 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.000106/0.6781, allocations: 116.8 kB / 1.409 GB, free: 6.414 MB / 0.8779 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.883e-05/0.6782, allocations: 23.72 kB / 1.41 GB, free: 6.391 MB / 0.8779 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006498/0.6788, allocations: 397.5 kB / 1.41 GB, free: 5.996 MB / 0.8779 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.6788, allocations: 0 / 1.41 GB, free: 5.996 MB / 0.8779 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.6788, allocations: 4 kB / 1.41 GB, free: 5.992 MB / 0.8779 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.6788, allocations: 4.047 kB / 1.41 GB, free: 5.988 MB / 0.8779 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004956/0.6793, allocations: 0.5237 MB / 1.41 GB, free: 5.414 MB / 0.8779 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.6794, allocations: 0 / 1.41 GB, free: 5.414 MB / 0.8779 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003732/0.6797, allocations: 83.95 kB / 1.41 GB, free: 5.332 MB / 0.8779 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001049/0.6799, allocations: 40.67 kB / 1.411 GB, free: 5.289 MB / 0.8779 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.316e-05/0.6799, allocations: 8 kB / 1.411 GB, free: 5.281 MB / 0.8779 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008411/0.6807, allocations: 1.33 MB / 1.412 GB, free: 3.836 MB / 0.8779 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.6807, allocations: 4 kB / 1.412 GB, free: 3.832 MB / 0.8779 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006049/0.6814, allocations: 0.5041 MB / 1.412 GB, free: 3.281 MB / 0.8779 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/0.6815, allocations: 136.7 kB / 1.412 GB, free: 3.129 MB / 0.8779 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.733e-05/0.6815, allocations: 4 kB / 1.412 GB, free: 3.125 MB / 0.8779 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003098/0.6819, allocations: 35.95 kB / 1.413 GB, free: 3.09 MB / 0.8779 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.411e-05/0.682, allocations: 23.97 kB / 1.413 GB, free: 3.066 MB / 0.8779 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-05/0.682, allocations: 15.98 kB / 1.413 GB, free: 3.051 MB / 0.8779 GB Notification: Performance of sort global known variables: time 0.0001152/0.6821, allocations: 164.4 kB / 1.413 GB, free: 2.891 MB / 0.8779 GB Notification: Performance of remove unused functions: time 0.0004805/0.6826, allocations: 119.9 kB / 1.413 GB, free: 2.773 MB / 0.8779 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.0001405/0.6827, allocations: 127.1 kB / 1.413 GB, free: 2.641 MB / 0.8779 GB Notification: Performance of simCode: created initialization part: time 0.0009964/0.6837, allocations: 0.7778 MB / 1.414 GB, free: 1.828 MB / 0.8779 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.6838, allocations: 0 / 1.414 GB, free: 1.828 MB / 0.8779 GB Notification: Performance of simCode: created simulation system equations: time 0.0003507/0.6841, allocations: 269.7 kB / 1.414 GB, free: 1.555 MB / 0.8779 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002728/0.6844, allocations: 33.91 kB / 1.414 GB, free: 1.523 MB / 0.8779 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009251/0.6853, allocations: 478.7 kB / 1.414 GB, free: 1.027 MB / 0.8779 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003911/0.6857, allocations: 0.8235 MB / 1.415 GB, free: 184 kB / 0.8779 GB Notification: Performance of SimCode: time 2.41e-07/0.6857, allocations: 0 / 1.415 GB, free: 184 kB / 0.8779 GB Notification: Performance of Templates: time 0.008542/0.6943, allocations: 5.697 MB / 1.421 GB, free: 10.52 MB / 0.8936 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches