Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.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.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.781/1.781, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.0009358/0.0009358, allocations: 181.2 kB / 487 MB, free: 5.328 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.123/1.123, allocations: 221.3 MB / 0.7819 GB, free: 1.414 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.0008545/0.0008543, allocations: 100.2 kB / 0.9213 GB, free: 2.664 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.08e-06/5.1e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.182/0.1821, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5137/0.6958, allocations: 172.2 MB / 1.373 GB, free: 4.457 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/0.696, allocations: 93.67 kB / 1.373 GB, free: 4.402 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.04143/0.7375, allocations: 18.86 MB / 1.392 GB, free: 4.566 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.74e-05/0.7375, allocations: 4 kB / 1.392 GB, free: 4.562 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.0009772/0.7385, allocations: 0.6171 MB / 1.392 GB, free: 3.914 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.7386, allocations: 8.031 kB / 1.392 GB, free: 3.906 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007611/0.7393, allocations: 103.5 kB / 1.393 GB, free: 3.805 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003429/0.7397, allocations: 277.8 kB / 1.393 GB, free: 3.516 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.7397, allocations: 8 kB / 1.393 GB, free: 3.508 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.734e-05/0.7398, allocations: 12 kB / 1.393 GB, free: 3.496 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000394/0.7402, allocations: 255.9 kB / 1.393 GB, free: 3.328 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000467/0.7406, allocations: 357.1 kB / 1.393 GB, free: 3.031 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.7406, allocations: 0 / 1.393 GB, free: 3.031 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.213e-05/0.7407, allocations: 4 kB / 1.393 GB, free: 3.027 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.441e-05/0.7407, allocations: 20.36 kB / 1.393 GB, free: 3.004 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001864/0.7426, allocations: 1.608 MB / 1.395 GB, free: 1.473 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004848/0.7431, allocations: 339.8 kB / 1.395 GB, free: 1.203 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002042/0.7433, allocations: 154.5 kB / 1.395 GB, free: 1.094 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001503/0.7435, allocations: 97.08 kB / 1.396 GB, free: 0.9805 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002763/0.7438, allocations: 217 kB / 1.396 GB, free: 0.8008 MB / 0.823 GB Notification: Performance of pre-optimization done (n=27): time 1.563e-06/0.7438, allocations: 0 / 1.396 GB, free: 0.8008 MB / 0.823 GB Notification: Performance of matching and sorting (n=28): time 0.0008422/0.7446, allocations: 430.2 kB / 1.396 GB, free: 460 kB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.246e-05/0.7447, allocations: 85.14 kB / 1.396 GB, free: 356 kB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.7448, allocations: 195.2 kB / 1.396 GB, free: 184 kB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.796e-05/0.7448, allocations: 25.7 kB / 1.396 GB, free: 152 kB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 6.047e-05/0.7449, allocations: 150.6 kB / 1.397 GB, free: 8 kB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 6.857e-05/0.745, allocations: 87.67 kB / 1.397 GB, free: 15.93 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.916e-05/0.745, allocations: 0 / 1.397 GB, free: 15.93 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.586e-05/0.7451, allocations: 340.3 kB / 1.397 GB, free: 15.6 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/0.7453, allocations: 127.7 kB / 1.397 GB, free: 15.52 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002424/0.7455, allocations: 198.4 kB / 1.397 GB, free: 15.35 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002767/0.7458, allocations: 176.4 kB / 1.398 GB, free: 15.23 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.7458, allocations: 3.938 kB / 1.398 GB, free: 15.22 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006929/0.7465, allocations: 417.3 kB / 1.398 GB, free: 14.9 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002961/0.7468, allocations: 0.884 MB / 1.399 GB, free: 13.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.7468, allocations: 8 kB / 1.399 GB, free: 13.96 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002022/0.7471, allocations: 35.89 kB / 1.399 GB, free: 13.93 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004204/0.7475, allocations: 95.3 kB / 1.399 GB, free: 13.84 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001161/0.7487, allocations: 1.409 MB / 1.4 GB, free: 12.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003322/0.749, allocations: 43.98 kB / 1.4 GB, free: 12.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.28e-05/0.749, allocations: 19.23 kB / 1.4 GB, free: 12.32 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.179e-06/0.7491, allocations: 4 kB / 1.4 GB, free: 12.32 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005984/0.7497, allocations: 343.1 kB / 1.401 GB, free: 12.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.7497, allocations: 4 kB / 1.401 GB, free: 12.06 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000124/0.7498, allocations: 46.97 kB / 1.401 GB, free: 12.02 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003716/0.7502, allocations: 86.69 kB / 1.401 GB, free: 11.94 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001042/0.7512, allocations: 1.406 MB / 1.402 GB, free: 10.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003013/0.7516, allocations: 39.98 kB / 1.402 GB, free: 10.45 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.932e-05/0.7516, allocations: 19.89 kB / 1.402 GB, free: 10.43 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 0.0001041/0.7517, allocations: 121 kB / 1.402 GB, free: 10.31 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.96e-05/0.7518, allocations: 27.72 kB / 1.402 GB, free: 10.29 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006541/0.7524, allocations: 392.2 kB / 1.403 GB, free: 9.988 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.7524, allocations: 8 kB / 1.403 GB, free: 9.98 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.7524, allocations: 4 kB / 1.403 GB, free: 9.977 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.7525, allocations: 3.984 kB / 1.403 GB, free: 9.973 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000524/0.753, allocations: 0.5103 MB / 1.403 GB, free: 9.492 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.753, allocations: 0 / 1.403 GB, free: 9.492 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003864/0.7534, allocations: 79.97 kB / 1.403 GB, free: 9.414 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001077/0.7535, allocations: 36.3 kB / 1.403 GB, free: 9.379 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.201e-05/0.7535, allocations: 10.92 kB / 1.403 GB, free: 9.371 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000909/0.7545, allocations: 1.332 MB / 1.405 GB, free: 7.988 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.7545, allocations: 4 kB / 1.405 GB, free: 7.984 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006086/0.7551, allocations: 0.5055 MB / 1.405 GB, free: 7.516 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001477/0.7552, allocations: 143 kB / 1.405 GB, free: 7.367 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.691e-05/0.7553, allocations: 3.062 kB / 1.405 GB, free: 7.367 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003159/0.7556, allocations: 31.97 kB / 1.405 GB, free: 7.336 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.694e-05/0.7557, allocations: 30.83 kB / 1.405 GB, free: 7.309 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.038e-05/0.7557, allocations: 23.83 kB / 1.405 GB, free: 7.289 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001224/0.7559, allocations: 156.4 kB / 1.406 GB, free: 7.16 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000502/0.7564, allocations: 123.8 kB / 1.406 GB, free: 7.043 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.0001578/0.7565, allocations: 123.1 kB / 1.406 GB, free: 6.914 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009783/0.7575, allocations: 0.7645 MB / 1.407 GB, free: 6.27 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.7575, allocations: 0 / 1.407 GB, free: 6.27 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003603/0.7579, allocations: 281.8 kB / 1.407 GB, free: 6.035 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.7582, allocations: 35.66 kB / 1.407 GB, free: 6.008 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009752/0.7592, allocations: 477 kB / 1.407 GB, free: 5.566 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004097/0.7596, allocations: 0.8263 MB / 1.408 GB, free: 4.727 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/0.7596, allocations: 0 / 1.408 GB, free: 4.727 MB / 0.8386 GB Notification: Performance of Templates: time 0.008772/0.7684, allocations: 5.69 MB / 1.414 GB, free: 15.07 MB / 0.8542 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches