Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.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.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") [: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.712/1.712, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.000894/0.000894, allocations: 186.9 kB / 490.8 MB, free: 1.879 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.3 MB / 0.7863 GB, free: 13.63 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.0008057/0.0008057, allocations: 87.14 kB / 0.9264 GB, free: 14.16 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.731e-06/5.751e-06, allocations: 4 kB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1671/0.1671, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4631/0.6303, allocations: 170.3 MB / 1.378 GB, free: 17.12 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002077/0.6305, allocations: 88.22 kB / 1.378 GB, free: 17.12 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.03495/0.6655, allocations: 17.35 MB / 1.395 GB, free: 11.35 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.413e-05/0.6655, allocations: 4.812 kB / 1.395 GB, free: 11.35 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0005976/0.6661, allocations: 0.5215 MB / 1.395 GB, free: 26.88 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.999e-05/0.6661, allocations: 8.219 kB / 1.395 GB, free: 26.88 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007278/0.6669, allocations: 100.3 kB / 1.396 GB, free: 26.83 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000263/0.6671, allocations: 258.5 kB / 1.396 GB, free: 26.59 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.6672, allocations: 4.875 kB / 1.396 GB, free: 26.59 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.906e-05/0.6672, allocations: 14.59 kB / 1.396 GB, free: 26.59 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003546/0.6676, allocations: 228.5 kB / 1.396 GB, free: 26.57 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003921/0.668, allocations: 338.5 kB / 1.396 GB, free: 26.41 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.668, allocations: 0.875 kB / 1.396 GB, free: 26.41 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.585e-05/0.668, allocations: 5.5 kB / 1.396 GB, free: 26.4 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.572e-05/0.6681, allocations: 20.69 kB / 1.396 GB, free: 26.39 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001422/0.6695, allocations: 1.687 MB / 1.398 GB, free: 25.02 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003223/0.6698, allocations: 256.7 kB / 1.398 GB, free: 24.94 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.67, allocations: 134.6 kB / 1.398 GB, free: 24.91 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001175/0.6701, allocations: 92 kB / 1.399 GB, free: 24.81 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.527e-05/0.6701, allocations: 36.06 kB / 1.399 GB, free: 24.77 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=20): time 1.322e-06/0.6702, allocations: 0 / 1.399 GB, free: 24.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=21): time 0.0007596/0.6709, allocations: 379.7 kB / 1.399 GB, free: 24.62 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.815e-05/0.6709, allocations: 83.2 kB / 1.399 GB, free: 24.53 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001467/0.6711, allocations: 173.6 kB / 1.399 GB, free: 24.41 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.6711, allocations: 25.7 kB / 1.399 GB, free: 24.38 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.249e-05/0.6712, allocations: 152.4 kB / 1.399 GB, free: 24.25 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.973e-05/0.6712, allocations: 70.47 kB / 1.399 GB, free: 24.2 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.381e-05/0.6712, allocations: 0 / 1.399 GB, free: 24.2 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.76e-05/0.6713, allocations: 334.5 kB / 1.4 GB, free: 23.88 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.6715, allocations: 113.3 kB / 1.4 GB, free: 23.86 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.6717, allocations: 196.6 kB / 1.4 GB, free: 23.74 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002454/0.6719, allocations: 156.6 kB / 1.4 GB, free: 23.71 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.6719, allocations: 0.875 kB / 1.4 GB, free: 23.71 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006116/0.6725, allocations: 393.2 kB / 1.401 GB, free: 23.6 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002514/0.6728, allocations: 1.043 MB / 1.402 GB, free: 22.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.6728, allocations: 3.125 kB / 1.402 GB, free: 22.5 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001914/0.673, allocations: 46.5 kB / 1.402 GB, free: 22.48 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003192/0.6734, allocations: 77.64 kB / 1.402 GB, free: 22.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/0.6744, allocations: 1.409 MB / 1.403 GB, free: 21.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002361/0.6746, allocations: 25.7 kB / 1.403 GB, free: 21.14 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.714e-05/0.6747, allocations: 9.812 kB / 1.403 GB, free: 21.14 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.262e-06/0.6747, allocations: 3.656 kB / 1.403 GB, free: 21.14 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005146/0.6752, allocations: 314.7 kB / 1.403 GB, free: 21.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.6752, allocations: 6.938 kB / 1.403 GB, free: 21.07 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001184/0.6753, allocations: 42.48 kB / 1.403 GB, free: 21.05 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002748/0.6756, allocations: 68.73 kB / 1.403 GB, free: 21.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008999/0.6765, allocations: 1.407 MB / 1.405 GB, free: 19.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001912/0.6767, allocations: 24.59 kB / 1.405 GB, free: 19.73 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.613e-05/0.6768, allocations: 13.38 kB / 1.405 GB, free: 19.73 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * 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 8.698e-05/0.6769, allocations: 111.1 kB / 1.405 GB, free: 19.62 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.815e-05/0.6769, allocations: 21.58 kB / 1.405 GB, free: 19.61 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005556/0.6775, allocations: 342.2 kB / 1.405 GB, free: 19.47 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.6775, allocations: 0 / 1.405 GB, free: 19.47 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.6775, allocations: 4 kB / 1.405 GB, free: 19.46 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.6775, allocations: 7.906 kB / 1.405 GB, free: 19.46 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009685/0.6785, allocations: 0.8886 MB / 1.406 GB, free: 18.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.6785, allocations: 4.219 kB / 1.406 GB, free: 18.65 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002171/0.6787, allocations: 47.95 kB / 1.406 GB, free: 18.6 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.609e-05/0.6788, allocations: 36.77 kB / 1.406 GB, free: 18.57 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.6789, allocations: 4 kB / 1.406 GB, free: 18.56 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007288/0.6796, allocations: 1.348 MB / 1.408 GB, free: 17.17 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.6796, allocations: 7.984 kB / 1.408 GB, free: 17.16 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004669/0.6801, allocations: 0.5902 MB / 1.408 GB, free: 16.57 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.131e-05/0.6802, allocations: 124.2 kB / 1.408 GB, free: 16.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.504e-05/0.6802, allocations: 4 kB / 1.408 GB, free: 16.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002254/0.6805, allocations: 19.98 kB / 1.408 GB, free: 16.41 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.893e-05/0.6805, allocations: 22.81 kB / 1.408 GB, free: 16.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/0.6805, allocations: 4 kB / 1.408 GB, free: 16.39 MB / 0.8386 GB Notification: Performance of sort global known variables: time 8.629e-05/0.6806, allocations: 144.9 kB / 1.409 GB, free: 16.27 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000498/0.6811, allocations: 106.6 kB / 1.409 GB, free: 16.16 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001153/0.6812, allocations: 119.1 kB / 1.409 GB, free: 16.04 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006668/0.6819, allocations: 0.6502 MB / 1.409 GB, free: 15.5 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.6819, allocations: 0 / 1.409 GB, free: 15.5 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002391/0.6822, allocations: 245.1 kB / 1.41 GB, free: 15.28 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/0.6824, allocations: 28.77 kB / 1.41 GB, free: 15.26 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006427/0.6831, allocations: 420.4 kB / 1.41 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003108/0.6834, allocations: 0.7944 MB / 1.411 GB, free: 14.05 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/0.6834, allocations: 0 / 1.411 GB, free: 14.05 MB / 0.8386 GB Notification: Performance of Templates: time 0.005762/0.6892, allocations: 4.226 MB / 1.415 GB, free: 9.855 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches