Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.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.OnePhase.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.OnePhase.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.OnePhase.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.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 7.0.3-maint.7.0.x/package.mo): time 1.344/1.344, allocations: 249.4 MB / 256.7 MB, free: 7.605 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00107/0.00107, allocations: 181.3 kB / 316 MB, free: 7.918 MB / 254.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.261/1.261, allocations: 205.1 MB / 0.5667 GB, free: 3.348 MB / 414.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008436/0.0008436, allocations: 89.45 kB / 0.671 GB, free: 8.488 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 8.927e-06/8.936e-06, allocations: 4 kB / 0.7807 GB, free: 106.8 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1932/0.1933, allocations: 106.3 MB / 0.8846 GB, free: 364 kB / 0.545 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5019/0.6953, allocations: 153.9 MB / 1.035 GB, free: 8.453 MB / 0.6544 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002421/0.6956, allocations: 97.83 kB / 1.035 GB, free: 8.398 MB / 0.6544 GB Notification: Performance of FrontEnd: time 0.03989/0.7355, allocations: 16.58 MB / 1.051 GB, free: 10.66 MB / 0.67 GB Notification: Performance of Transformations before backend: time 2.149e-05/0.7355, allocations: 8 kB / 1.051 GB, free: 10.65 MB / 0.67 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.00109/0.7366, allocations: 0.6063 MB / 1.052 GB, free: 10.02 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.7367, allocations: 8.031 kB / 1.052 GB, free: 10.01 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008329/0.7375, allocations: 107.5 kB / 1.052 GB, free: 9.902 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003739/0.7379, allocations: 282.8 kB / 1.052 GB, free: 9.609 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.7379, allocations: 8 kB / 1.052 GB, free: 9.602 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.166e-05/0.738, allocations: 15.98 kB / 1.052 GB, free: 9.586 MB / 0.67 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004777/0.7385, allocations: 253.5 kB / 1.052 GB, free: 9.426 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000487/0.739, allocations: 349.9 kB / 1.053 GB, free: 9.133 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.739, allocations: 0 / 1.053 GB, free: 9.133 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.24e-05/0.739, allocations: 0 / 1.053 GB, free: 9.133 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.023e-05/0.7391, allocations: 31.59 kB / 1.053 GB, free: 9.102 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001916/0.741, allocations: 1.615 MB / 1.054 GB, free: 7.562 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004971/0.7415, allocations: 334.6 kB / 1.055 GB, free: 7.297 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002052/0.7417, allocations: 160.9 kB / 1.055 GB, free: 7.18 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001659/0.7419, allocations: 96.53 kB / 1.055 GB, free: 7.07 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000284/0.7422, allocations: 221.1 kB / 1.055 GB, free: 6.883 MB / 0.67 GB Notification: Performance of pre-optimization done (n=27): time 1.523e-06/0.7422, allocations: 0 / 1.055 GB, free: 6.883 MB / 0.67 GB Notification: Performance of matching and sorting (n=28): time 0.0009065/0.7431, allocations: 424.8 kB / 1.055 GB, free: 6.535 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.338e-05/0.7432, allocations: 85.2 kB / 1.056 GB, free: 6.434 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000166/0.7433, allocations: 195.6 kB / 1.056 GB, free: 6.262 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 3.4e-05/0.7434, allocations: 25.7 kB / 1.056 GB, free: 6.23 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 7.229e-05/0.7435, allocations: 150.7 kB / 1.056 GB, free: 6.09 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 6.671e-05/0.7435, allocations: 92.59 kB / 1.056 GB, free: 6.012 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.909e-05/0.7436, allocations: 0 / 1.056 GB, free: 6.012 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.7437, allocations: 330.3 kB / 1.056 GB, free: 5.688 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001834/0.7439, allocations: 128.2 kB / 1.056 GB, free: 5.609 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002653/0.7441, allocations: 206.4 kB / 1.057 GB, free: 5.43 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002815/0.7444, allocations: 172.2 kB / 1.057 GB, free: 5.312 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.7444, allocations: 0 / 1.057 GB, free: 5.312 MB / 0.67 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000779/0.7452, allocations: 427.9 kB / 1.057 GB, free: 4.984 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002893/0.7455, allocations: 0.8771 MB / 1.058 GB, free: 4.059 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.7455, allocations: 8 kB / 1.058 GB, free: 4.051 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002067/0.7458, allocations: 36.39 kB / 1.058 GB, free: 4.016 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004262/0.7462, allocations: 95.55 kB / 1.058 GB, free: 3.926 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001358/0.7476, allocations: 1.404 MB / 1.06 GB, free: 2.473 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003646/0.7479, allocations: 50.42 kB / 1.06 GB, free: 2.426 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.691e-05/0.748, allocations: 19.48 kB / 1.06 GB, free: 2.41 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 6.042e-06/0.748, allocations: 4 kB / 1.06 GB, free: 2.406 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006437/0.7486, allocations: 344.2 kB / 1.06 GB, free: 2.152 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.7487, allocations: 4 kB / 1.06 GB, free: 2.148 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001293/0.7488, allocations: 48.47 kB / 1.06 GB, free: 2.105 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003803/0.7492, allocations: 87.31 kB / 1.06 GB, free: 2.023 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001097/0.7503, allocations: 1.399 MB / 1.061 GB, free: 0.5781 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003224/0.7506, allocations: 43.92 kB / 1.062 GB, free: 0.5352 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.906e-05/0.7507, allocations: 15.55 kB / 1.062 GB, free: 0.5234 MB / 0.67 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.0001264/0.7508, allocations: 116.9 kB / 1.062 GB, free: 412 kB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.898e-05/0.7509, allocations: 31.06 kB / 1.062 GB, free: 384 kB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006927/0.7516, allocations: 387 kB / 1.062 GB, free: 88 kB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.7516, allocations: 8 kB / 1.062 GB, free: 80 kB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.7516, allocations: 3.938 kB / 1.062 GB, free: 76 kB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.7516, allocations: 4 kB / 1.062 GB, free: 72 kB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005838/0.7522, allocations: 0.5159 MB / 1.063 GB, free: 15.58 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.7522, allocations: 4.062 kB / 1.063 GB, free: 15.58 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004254/0.7526, allocations: 83.84 kB / 1.063 GB, free: 15.5 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001238/0.7528, allocations: 32.7 kB / 1.063 GB, free: 15.47 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.7528, allocations: 4 kB / 1.063 GB, free: 15.46 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009952/0.7538, allocations: 1.342 MB / 1.064 GB, free: 14.07 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.147e-06/0.7538, allocations: 4 kB / 1.064 GB, free: 14.07 MB / 0.6856 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006358/0.7545, allocations: 0.5022 MB / 1.064 GB, free: 13.61 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001362/0.7546, allocations: 142.2 kB / 1.065 GB, free: 13.46 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.949e-05/0.7547, allocations: 0 / 1.065 GB, free: 13.46 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003311/0.755, allocations: 39.78 kB / 1.065 GB, free: 13.42 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.238e-05/0.7551, allocations: 26.89 kB / 1.065 GB, free: 13.4 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.647e-05/0.7551, allocations: 11.19 kB / 1.065 GB, free: 13.39 MB / 0.6856 GB Notification: Performance of sort global known variables: time 0.0001311/0.7553, allocations: 160.5 kB / 1.065 GB, free: 13.26 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0006005/0.7559, allocations: 122.6 kB / 1.065 GB, free: 13.14 MB / 0.6856 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.0001732/0.7561, allocations: 119.8 kB / 1.065 GB, free: 13.02 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.001073/0.7571, allocations: 0.7668 MB / 1.066 GB, free: 12.37 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.7572, allocations: 4 kB / 1.066 GB, free: 12.37 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0003805/0.7575, allocations: 276.1 kB / 1.066 GB, free: 12.14 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.7579, allocations: 37.53 kB / 1.066 GB, free: 12.11 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.759, allocations: 487.1 kB / 1.067 GB, free: 11.66 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004449/0.7594, allocations: 0.8219 MB / 1.067 GB, free: 10.82 MB / 0.6856 GB Notification: Performance of SimCode: time 3.5e-07/0.7594, allocations: 3.938 kB / 1.067 GB, free: 10.82 MB / 0.6856 GB Notification: Performance of Templates: time 0.00975/0.7692, allocations: 5.7 MB / 1.073 GB, free: 5.152 MB / 0.6856 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches