Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.791/1.791, allocations: 387.2 MB / 394.5 MB, free: 13.65 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.0009365/0.0009365, allocations: 197.2 kB / 487 MB, free: 5.352 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.117/1.117, allocations: 221.3 MB / 0.7819 GB, free: 1.336 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008792/0.0008792, allocations: 91.61 kB / 0.9213 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.01e-06/5.04e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.1834, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5173/0.7008, allocations: 169.5 MB / 1.371 GB, free: 7.254 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001856/0.701, allocations: 86.19 kB / 1.371 GB, free: 7.207 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.03552/0.7365, allocations: 17.37 MB / 1.388 GB, free: 8.66 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.46e-05/0.7365, allocations: 11.98 kB / 1.388 GB, free: 8.648 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.0006711/0.7372, allocations: 0.5145 MB / 1.388 GB, free: 8.102 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.009e-05/0.7373, allocations: 9.031 kB / 1.388 GB, free: 8.094 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007371/0.738, allocations: 95.59 kB / 1.388 GB, free: 8 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002843/0.7383, allocations: 259.5 kB / 1.389 GB, free: 7.727 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.7383, allocations: 8 kB / 1.389 GB, free: 7.719 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.011e-05/0.7384, allocations: 8 kB / 1.389 GB, free: 7.711 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003347/0.7387, allocations: 233.5 kB / 1.389 GB, free: 7.559 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004031/0.7391, allocations: 339.8 kB / 1.389 GB, free: 7.266 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.7391, allocations: 0 / 1.389 GB, free: 7.266 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.483e-05/0.7392, allocations: 0 / 1.389 GB, free: 7.266 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.315e-05/0.7392, allocations: 24 kB / 1.389 GB, free: 7.242 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001544/0.7408, allocations: 1.682 MB / 1.391 GB, free: 5.613 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/0.7411, allocations: 258.8 kB / 1.391 GB, free: 5.406 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001662/0.7413, allocations: 142.8 kB / 1.391 GB, free: 5.301 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001338/0.7414, allocations: 93.03 kB / 1.391 GB, free: 5.191 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.7414, allocations: 30.56 kB / 1.391 GB, free: 5.152 MB / 0.823 GB Notification: Performance of pre-optimization done (n=20): time 1.323e-06/0.7414, allocations: 0 / 1.391 GB, free: 5.152 MB / 0.823 GB Notification: Performance of matching and sorting (n=21): time 0.0007463/0.7422, allocations: 379.3 kB / 1.392 GB, free: 4.84 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.7422, allocations: 89.19 kB / 1.392 GB, free: 4.734 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.7424, allocations: 171 kB / 1.392 GB, free: 4.582 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.7424, allocations: 25.7 kB / 1.392 GB, free: 4.551 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 6.84e-05/0.7425, allocations: 146.9 kB / 1.392 GB, free: 4.41 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 4.799e-05/0.7425, allocations: 72.34 kB / 1.392 GB, free: 4.348 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.398e-05/0.7425, allocations: 0 / 1.392 GB, free: 4.348 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 9.465e-05/0.7426, allocations: 325.7 kB / 1.393 GB, free: 4.027 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001404/0.7428, allocations: 115.9 kB / 1.393 GB, free: 3.953 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.743, allocations: 196.4 kB / 1.393 GB, free: 3.766 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002407/0.7432, allocations: 158.2 kB / 1.393 GB, free: 3.66 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.7432, allocations: 0 / 1.393 GB, free: 3.66 MB / 0.823 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006009/0.7438, allocations: 391.7 kB / 1.393 GB, free: 3.355 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003378/0.7442, allocations: 1.056 MB / 1.394 GB, free: 2.242 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.7442, allocations: 4 kB / 1.394 GB, free: 2.238 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001789/0.7444, allocations: 44.19 kB / 1.394 GB, free: 2.195 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003225/0.7447, allocations: 71.39 kB / 1.395 GB, free: 2.129 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001123/0.7459, allocations: 1.42 MB / 1.396 GB, free: 0.668 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002195/0.7461, allocations: 19.94 kB / 1.396 GB, free: 0.6484 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.7461, allocations: 16.06 kB / 1.396 GB, free: 0.6328 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 5.009e-06/0.7461, allocations: 4 kB / 1.396 GB, free: 0.6289 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005118/0.7467, allocations: 308.2 kB / 1.396 GB, free: 412 kB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-06/0.7467, allocations: 0 / 1.396 GB, free: 412 kB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001268/0.7468, allocations: 52.53 kB / 1.396 GB, free: 360 kB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002639/0.7471, allocations: 66.33 kB / 1.396 GB, free: 296 kB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009744/0.7481, allocations: 1.407 MB / 1.398 GB, free: 14.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001868/0.7483, allocations: 23.88 kB / 1.398 GB, free: 14.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.7483, allocations: 15.92 kB / 1.398 GB, free: 14.81 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.993e-05/0.7484, allocations: 114.9 kB / 1.398 GB, free: 14.7 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.381e-05/0.7484, allocations: 19.72 kB / 1.398 GB, free: 14.68 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005483/0.749, allocations: 333.7 kB / 1.398 GB, free: 14.42 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.749, allocations: 8 kB / 1.398 GB, free: 14.41 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.749, allocations: 3.906 kB / 1.398 GB, free: 14.41 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.749, allocations: 3.984 kB / 1.398 GB, free: 14.41 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001143/0.7502, allocations: 0.8857 MB / 1.399 GB, free: 13.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.7502, allocations: 4 kB / 1.399 GB, free: 13.59 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002397/0.7504, allocations: 51.95 kB / 1.399 GB, free: 13.54 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001157/0.7506, allocations: 43.64 kB / 1.399 GB, free: 13.5 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.7506, allocations: 3.906 kB / 1.399 GB, free: 13.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009034/0.7515, allocations: 1.325 MB / 1.4 GB, free: 12.12 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.7515, allocations: 8.062 kB / 1.401 GB, free: 12.12 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005739/0.7521, allocations: 0.5943 MB / 1.401 GB, free: 11.52 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.7522, allocations: 123.3 kB / 1.401 GB, free: 11.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.602e-05/0.7523, allocations: 8 kB / 1.401 GB, free: 11.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002343/0.7525, allocations: 15.98 kB / 1.401 GB, free: 11.37 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.13e-05/0.7526, allocations: 23.25 kB / 1.401 GB, free: 11.35 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.7526, allocations: 4 kB / 1.401 GB, free: 11.34 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001023/0.7527, allocations: 145 kB / 1.401 GB, free: 11.22 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005215/0.7532, allocations: 110.9 kB / 1.401 GB, free: 11.12 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.0001338/0.7534, allocations: 119.2 kB / 1.402 GB, free: 10.99 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0007804/0.7542, allocations: 0.6378 MB / 1.402 GB, free: 10.47 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.7542, allocations: 4.125 kB / 1.402 GB, free: 10.46 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002801/0.7545, allocations: 241.1 kB / 1.402 GB, free: 10.25 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.7547, allocations: 33.33 kB / 1.402 GB, free: 10.23 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007412/0.7555, allocations: 430.6 kB / 1.403 GB, free: 9.82 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003789/0.7559, allocations: 0.7967 MB / 1.404 GB, free: 9.008 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/0.7559, allocations: 4 kB / 1.404 GB, free: 9.004 MB / 0.8386 GB Notification: Performance of Templates: time 0.006975/0.7629, allocations: 4.23 MB / 1.408 GB, free: 4.793 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches