Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.352/1.352, allocations: 249.4 MB / 256.7 MB, free: 7.047 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.001205/0.001205, allocations: 180.8 kB / 316 MB, free: 3.52 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.187/1.187, allocations: 205.1 MB / 0.5667 GB, free: 15.59 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.0008349/0.0008349, allocations: 86.41 kB / 0.671 GB, free: 4.719 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.931e-06/5.941e-06, allocations: 0 / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1628/0.1628, allocations: 106.3 MB / 0.8846 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5532/0.716, allocations: 155.4 MB / 1.036 GB, free: 1.047 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/0.7164, allocations: 98.17 kB / 1.036 GB, free: 0.9922 MB / 0.6511 GB Notification: Performance of FrontEnd: time 0.04338/0.7598, allocations: 17.23 MB / 1.053 GB, free: 2.695 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 2.011e-05/0.7598, allocations: 4 kB / 1.053 GB, free: 2.691 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001134/0.761, allocations: 0.6143 MB / 1.054 GB, free: 2.047 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.761, allocations: 8.031 kB / 1.054 GB, free: 2.039 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008524/0.7619, allocations: 99.61 kB / 1.054 GB, free: 1.941 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004023/0.7623, allocations: 279 kB / 1.054 GB, free: 1.652 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.7623, allocations: 8 kB / 1.054 GB, free: 1.645 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.844e-05/0.7624, allocations: 12 kB / 1.054 GB, free: 1.633 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004452/0.7628, allocations: 251.7 kB / 1.054 GB, free: 1.473 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005143/0.7634, allocations: 352.3 kB / 1.055 GB, free: 1.18 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.7634, allocations: 0 / 1.055 GB, free: 1.18 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.408e-05/0.7634, allocations: 7.938 kB / 1.055 GB, free: 1.172 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.687e-05/0.7635, allocations: 27.66 kB / 1.055 GB, free: 1.145 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002014/0.7655, allocations: 1.61 MB / 1.056 GB, free: 15.61 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005382/0.7661, allocations: 337.6 kB / 1.057 GB, free: 15.34 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002171/0.7663, allocations: 155.2 kB / 1.057 GB, free: 15.23 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001771/0.7665, allocations: 92.61 kB / 1.057 GB, free: 15.12 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003093/0.7668, allocations: 216.1 kB / 1.057 GB, free: 14.94 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=27): time 1.643e-06/0.7668, allocations: 0 / 1.057 GB, free: 14.94 MB / 0.6823 GB Notification: Performance of matching and sorting (n=28): time 0.001012/0.7678, allocations: 434.6 kB / 1.058 GB, free: 14.59 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/0.7679, allocations: 77.2 kB / 1.058 GB, free: 14.49 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.7681, allocations: 204.3 kB / 1.058 GB, free: 14.31 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.414e-05/0.7681, allocations: 25.7 kB / 1.058 GB, free: 14.28 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.647e-05/0.7682, allocations: 147.2 kB / 1.058 GB, free: 14.14 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 7.347e-05/0.7683, allocations: 89.78 kB / 1.058 GB, free: 14.07 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.963e-05/0.7683, allocations: 0 / 1.058 GB, free: 14.07 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.7685, allocations: 336.6 kB / 1.058 GB, free: 13.74 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.7687, allocations: 130.2 kB / 1.059 GB, free: 13.66 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002277/0.7689, allocations: 206.6 kB / 1.059 GB, free: 13.48 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002834/0.7692, allocations: 165.6 kB / 1.059 GB, free: 13.37 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.7692, allocations: 0 / 1.059 GB, free: 13.37 MB / 0.6823 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007934/0.77, allocations: 431.5 kB / 1.059 GB, free: 13.04 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002948/0.7703, allocations: 0.8704 MB / 1.06 GB, free: 12.11 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.7703, allocations: 8 kB / 1.06 GB, free: 12.11 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002221/0.7706, allocations: 43.64 kB / 1.06 GB, free: 12.07 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004507/0.771, allocations: 95.8 kB / 1.06 GB, free: 11.97 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001376/0.7724, allocations: 1.42 MB / 1.062 GB, free: 10.51 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003692/0.7728, allocations: 43.92 kB / 1.062 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.582e-05/0.7728, allocations: 15.98 kB / 1.062 GB, free: 10.45 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 6.783e-06/0.7729, allocations: 4 kB / 1.062 GB, free: 10.45 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006781/0.7735, allocations: 344 kB / 1.062 GB, free: 10.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.7736, allocations: 0 / 1.062 GB, free: 10.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001488/0.7737, allocations: 48.16 kB / 1.062 GB, free: 10.15 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003853/0.7741, allocations: 87.25 kB / 1.062 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001088/0.7752, allocations: 1.403 MB / 1.064 GB, free: 8.621 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003206/0.7755, allocations: 47.92 kB / 1.064 GB, free: 8.574 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.091e-05/0.7756, allocations: 19.48 kB / 1.064 GB, free: 8.559 MB / 0.6823 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.0001229/0.7757, allocations: 116.9 kB / 1.064 GB, free: 8.438 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.075e-05/0.7758, allocations: 27.62 kB / 1.064 GB, free: 8.41 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007075/0.7765, allocations: 387 kB / 1.064 GB, free: 8.125 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.7765, allocations: 4 kB / 1.064 GB, free: 8.121 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.7765, allocations: 7.938 kB / 1.064 GB, free: 8.113 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.7765, allocations: 0 / 1.064 GB, free: 8.113 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006057/0.7771, allocations: 0.5193 MB / 1.065 GB, free: 7.621 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.7772, allocations: 0 / 1.065 GB, free: 7.621 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004393/0.7776, allocations: 79.84 kB / 1.065 GB, free: 7.547 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001241/0.7777, allocations: 36.08 kB / 1.065 GB, free: 7.512 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.53e-05/0.7778, allocations: 0 / 1.065 GB, free: 7.512 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009598/0.7787, allocations: 1.344 MB / 1.066 GB, free: 6.117 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.7787, allocations: 0 / 1.066 GB, free: 6.117 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007043/0.7795, allocations: 0.4995 MB / 1.067 GB, free: 5.656 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001333/0.7796, allocations: 148.8 kB / 1.067 GB, free: 5.504 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.131e-05/0.7797, allocations: 8 kB / 1.067 GB, free: 5.496 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003361/0.78, allocations: 31.97 kB / 1.067 GB, free: 5.465 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.383e-05/0.7801, allocations: 27.7 kB / 1.067 GB, free: 5.441 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.523e-05/0.7801, allocations: 11.31 kB / 1.067 GB, free: 5.434 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0001282/0.7803, allocations: 161.7 kB / 1.067 GB, free: 5.297 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0005813/0.7809, allocations: 127.2 kB / 1.067 GB, free: 5.176 MB / 0.6823 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.0001958/0.7811, allocations: 125.7 kB / 1.067 GB, free: 5.047 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001094/0.7822, allocations: 0.7654 MB / 1.068 GB, free: 4.402 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.7822, allocations: 0 / 1.068 GB, free: 4.402 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003803/0.7826, allocations: 273.2 kB / 1.068 GB, free: 4.176 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003415/0.7829, allocations: 44.22 kB / 1.068 GB, free: 4.141 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/0.784, allocations: 478.9 kB / 1.069 GB, free: 3.699 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004481/0.7845, allocations: 0.8224 MB / 1.069 GB, free: 2.859 MB / 0.6823 GB Notification: Performance of SimCode: time 2.61e-07/0.7845, allocations: 0 / 1.069 GB, free: 2.859 MB / 0.6823 GB Notification: Performance of Templates: time 0.009833/0.7943, allocations: 5.701 MB / 1.075 GB, free: 13.21 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches