Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.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.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_latest_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_latest_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 10.0.0-master/package.mo): time 1.692/1.692, allocations: 390.4 MB / 397.7 MB, free: 11.2 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008926/0.0008925, allocations: 178.6 kB / 490.8 MB, free: 1.898 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.053/1.053, allocations: 221.4 MB / 0.7863 GB, free: 13.64 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007983/0.0007984, allocations: 92.28 kB / 0.9264 GB, free: 14.17 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.279e-06/5.3e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1631, allocations: 143 MB / 1.212 GB, free: 40.08 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4616/0.6247, allocations: 171.5 MB / 1.379 GB, free: 16.91 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/0.6249, allocations: 92.25 kB / 1.379 GB, free: 16.91 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.03806/0.663, allocations: 18.19 MB / 1.397 GB, free: 10.54 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.591e-05/0.663, allocations: 5.312 kB / 1.397 GB, free: 10.54 MB / 0.823 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.0008822/0.6639, allocations: 0.6123 MB / 1.398 GB, free: 26.01 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.951e-05/0.664, allocations: 12.09 kB / 1.398 GB, free: 26.01 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007309/0.6647, allocations: 102.7 kB / 1.398 GB, free: 25.96 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002965/0.665, allocations: 283.4 kB / 1.398 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.665, allocations: 5.344 kB / 1.398 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.782e-05/0.6651, allocations: 12.19 kB / 1.398 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004143/0.6655, allocations: 252.5 kB / 1.398 GB, free: 25.69 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004499/0.666, allocations: 355.4 kB / 1.399 GB, free: 25.53 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.666, allocations: 0.8125 kB / 1.399 GB, free: 25.53 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.9e-05/0.666, allocations: 4.656 kB / 1.399 GB, free: 25.53 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.283e-05/0.6661, allocations: 21.3 kB / 1.399 GB, free: 25.52 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001724/0.6678, allocations: 1.617 MB / 1.4 GB, free: 24.27 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004766/0.6683, allocations: 331.8 kB / 1.4 GB, free: 24.19 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/0.6685, allocations: 159.6 kB / 1.401 GB, free: 24.15 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001204/0.6686, allocations: 91.31 kB / 1.401 GB, free: 24.05 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002535/0.6689, allocations: 221.7 kB / 1.401 GB, free: 23.95 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=27): time 1.523e-06/0.6689, allocations: 0 / 1.401 GB, free: 23.95 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.0008698/0.6698, allocations: 430.4 kB / 1.401 GB, free: 23.79 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.114e-05/0.6698, allocations: 84.61 kB / 1.401 GB, free: 23.69 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.67, allocations: 189.2 kB / 1.402 GB, free: 23.58 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.67, allocations: 30.36 kB / 1.402 GB, free: 23.54 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.632e-05/0.6701, allocations: 147.4 kB / 1.402 GB, free: 23.42 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.844e-05/0.6702, allocations: 96.17 kB / 1.402 GB, free: 23.35 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.854e-05/0.6702, allocations: 0.625 kB / 1.402 GB, free: 23.35 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.6703, allocations: 332.1 kB / 1.402 GB, free: 23.03 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002045/0.6705, allocations: 136 kB / 1.402 GB, free: 23.02 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000224/0.6708, allocations: 215.7 kB / 1.402 GB, free: 22.89 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002409/0.671, allocations: 161.1 kB / 1.403 GB, free: 22.78 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.671, allocations: 3.906 kB / 1.403 GB, free: 22.78 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006103/0.6716, allocations: 430.2 kB / 1.403 GB, free: 22.45 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002556/0.6719, allocations: 0.8821 MB / 1.404 GB, free: 21.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.6719, allocations: 4 kB / 1.404 GB, free: 21.51 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001787/0.6721, allocations: 39.56 kB / 1.404 GB, free: 21.47 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003831/0.6725, allocations: 91.81 kB / 1.404 GB, free: 21.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001023/0.6735, allocations: 1.409 MB / 1.405 GB, free: 19.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003186/0.6739, allocations: 47.91 kB / 1.405 GB, free: 19.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.755e-05/0.6739, allocations: 15.06 kB / 1.405 GB, free: 19.87 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.41e-06/0.6739, allocations: 6.812 kB / 1.405 GB, free: 19.86 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005486/0.6745, allocations: 354.3 kB / 1.406 GB, free: 19.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.995e-06/0.6745, allocations: 0 / 1.406 GB, free: 19.6 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001103/0.6746, allocations: 43.64 kB / 1.406 GB, free: 19.56 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003383/0.6749, allocations: 87.09 kB / 1.406 GB, free: 19.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008464/0.6758, allocations: 1.396 MB / 1.407 GB, free: 18.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002871/0.6761, allocations: 43.8 kB / 1.407 GB, free: 18 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.549e-05/0.6761, allocations: 22.92 kB / 1.407 GB, free: 17.98 MB / 0.8386 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 9.393e-05/0.6762, allocations: 112.8 kB / 1.407 GB, free: 17.86 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.707e-05/0.6763, allocations: 23.72 kB / 1.407 GB, free: 17.84 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005749/0.6768, allocations: 402.5 kB / 1.408 GB, free: 17.54 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.6769, allocations: 4 kB / 1.408 GB, free: 17.54 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.6769, allocations: 0 / 1.408 GB, free: 17.54 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.6769, allocations: 7.922 kB / 1.408 GB, free: 17.53 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004305/0.6773, allocations: 0.5186 MB / 1.408 GB, free: 17.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.6773, allocations: 0 / 1.408 GB, free: 17.04 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003571/0.6777, allocations: 83.59 kB / 1.408 GB, free: 16.96 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.955e-05/0.6778, allocations: 40.52 kB / 1.409 GB, free: 16.93 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.201e-05/0.6778, allocations: 3.906 kB / 1.409 GB, free: 16.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008278/0.6787, allocations: 1.332 MB / 1.41 GB, free: 15.54 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.6787, allocations: 4.031 kB / 1.41 GB, free: 15.54 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005236/0.6792, allocations: 0.5047 MB / 1.41 GB, free: 15.07 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.6793, allocations: 130.7 kB / 1.41 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.68e-05/0.6794, allocations: 4.141 kB / 1.41 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003032/0.6797, allocations: 39.95 kB / 1.41 GB, free: 14.89 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.373e-05/0.6798, allocations: 30.44 kB / 1.411 GB, free: 14.87 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.6798, allocations: 11.94 kB / 1.411 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001039/0.6799, allocations: 160.6 kB / 1.411 GB, free: 14.72 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004677/0.6804, allocations: 123.9 kB / 1.411 GB, free: 14.6 MB / 0.8386 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.0001332/0.6805, allocations: 125.6 kB / 1.411 GB, free: 14.47 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008751/0.6814, allocations: 0.7689 MB / 1.412 GB, free: 13.82 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.6814, allocations: 0 / 1.412 GB, free: 13.82 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003188/0.6817, allocations: 275.3 kB / 1.412 GB, free: 13.59 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.682, allocations: 37.28 kB / 1.412 GB, free: 13.57 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008669/0.6829, allocations: 483.6 kB / 1.412 GB, free: 13.13 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003827/0.6833, allocations: 0.8223 MB / 1.413 GB, free: 12.29 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/0.6833, allocations: 0 / 1.413 GB, free: 12.29 MB / 0.8386 GB Notification: Performance of Templates: time 0.008282/0.6916, allocations: 5.681 MB / 1.419 GB, free: 6.648 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches