Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.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.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") [: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.175/1.175, allocations: 249.4 MB / 256.7 MB, free: 7.039 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001034/0.001034, allocations: 180.8 kB / 316 MB, free: 3.531 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9949/0.9949, allocations: 205.2 MB / 0.5667 GB, free: 15.76 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007837/0.0007837, allocations: 95.31 kB / 0.671 GB, free: 4.891 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.628e-06/4.659e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1331, allocations: 106.3 MB / 0.8845 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3958/0.5289, allocations: 148.8 MB / 1.03 GB, free: 7.73 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001984/0.5291, allocations: 78.64 kB / 1.03 GB, free: 7.691 MB / 0.6511 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. Notification: Performance of FrontEnd: time 0.01159/0.5407, allocations: 5.279 MB / 1.035 GB, free: 3.477 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 8.075e-06/0.5408, allocations: 4 kB / 1.035 GB, free: 3.473 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0004257/0.5412, allocations: 460.6 kB / 1.036 GB, free: 2.973 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 2.971e-05/0.5412, allocations: 12.03 kB / 1.036 GB, free: 2.961 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001955/0.5414, allocations: 27.8 kB / 1.036 GB, free: 2.934 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002102/0.5416, allocations: 211.8 kB / 1.036 GB, free: 2.699 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.312e-05/0.5417, allocations: 30.11 kB / 1.036 GB, free: 2.664 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.307e-05/0.5417, allocations: 8 kB / 1.036 GB, free: 2.656 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001395/0.5419, allocations: 80.27 kB / 1.036 GB, free: 2.602 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001692/0.542, allocations: 124.5 kB / 1.036 GB, free: 2.488 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.5421, allocations: 8 kB / 1.036 GB, free: 2.48 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.5421, allocations: 0 / 1.036 GB, free: 2.48 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.894e-05/0.5421, allocations: 4.188 kB / 1.036 GB, free: 2.477 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006419/0.5428, allocations: 0.612 MB / 1.037 GB, free: 1.875 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001718/0.5429, allocations: 43.89 kB / 1.037 GB, free: 1.832 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.41e-05/0.543, allocations: 27.14 kB / 1.037 GB, free: 1.809 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.319e-05/0.543, allocations: 0 / 1.037 GB, free: 1.809 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001038/0.5431, allocations: 122.7 kB / 1.037 GB, free: 1.676 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=7): time 9.92e-07/0.5431, allocations: 0 / 1.037 GB, free: 1.676 MB / 0.6511 GB Notification: Performance of matching and sorting (n=7): time 0.0001628/0.5433, allocations: 72.09 kB / 1.037 GB, free: 1.609 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/0.5434, allocations: 140.4 kB / 1.037 GB, free: 1.441 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.5435, allocations: 159.9 kB / 1.037 GB, free: 1.301 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.5435, allocations: 25.7 kB / 1.037 GB, free: 1.27 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.147e-05/0.5436, allocations: 126.3 kB / 1.037 GB, free: 1.148 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.418e-05/0.5436, allocations: 29.75 kB / 1.037 GB, free: 1.125 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.893e-06/0.5436, allocations: 4 kB / 1.037 GB, free: 1.121 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.882e-05/0.5437, allocations: 325 kB / 1.038 GB, free: 0.8008 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.065e-05/0.5438, allocations: 26.5 kB / 1.038 GB, free: 0.7852 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.828e-05/0.5439, allocations: 98.45 kB / 1.038 GB, free: 0.668 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.023e-05/0.544, allocations: 41.86 kB / 1.038 GB, free: 0.6367 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.544, allocations: 0 / 1.038 GB, free: 0.6367 MB / 0.6511 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002092/0.5442, allocations: 150.5 kB / 1.038 GB, free: 0.5039 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 8.406e-06/0.5442, allocations: 4 kB / 1.038 GB, free: 0.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.5442, allocations: 4 kB / 1.038 GB, free: 0.4961 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.5442, allocations: 4 kB / 1.038 GB, free: 0.4922 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/0.5443, allocations: 31.92 kB / 1.038 GB, free: 472 kB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.5444, allocations: 7.984 kB / 1.038 GB, free: 464 kB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/0.5445, allocations: 24.16 kB / 1.038 GB, free: 440 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.5445, allocations: 11.56 kB / 1.038 GB, free: 432 kB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,$PRE.voltageControl.ctrl.connected,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.75e-05/0.5446, allocations: 150.5 kB / 1.038 GB, free: 268 kB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.932e-05/0.5446, allocations: 15.84 kB / 1.038 GB, free: 252 kB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.724e-05/0.5447, allocations: 8.844 kB / 1.038 GB, free: 248 kB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-06/0.5447, allocations: 8 kB / 1.038 GB, free: 240 kB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.5447, allocations: 3.984 kB / 1.038 GB, free: 236 kB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.5447, allocations: 3.906 kB / 1.038 GB, free: 232 kB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000127/0.5448, allocations: 181.6 kB / 1.038 GB, free: 32 kB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.5448, allocations: 0 / 1.038 GB, free: 32 kB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.171e-05/0.5449, allocations: 12 kB / 1.038 GB, free: 20 kB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.5449, allocations: 0 / 1.038 GB, free: 20 kB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.545, allocations: 3.984 kB / 1.038 GB, free: 16 kB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.545, allocations: 0 / 1.038 GB, free: 16 kB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.545, allocations: 0 / 1.038 GB, free: 16 kB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000211/0.5452, allocations: 145.1 kB / 1.039 GB, free: 15.88 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 4.814e-05/0.5452, allocations: 92.95 kB / 1.039 GB, free: 15.77 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.898e-05/0.5453, allocations: 7.25 kB / 1.039 GB, free: 15.77 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.5454, allocations: 11.98 kB / 1.039 GB, free: 15.76 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.008e-05/0.5454, allocations: 7.984 kB / 1.039 GB, free: 15.75 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.5455, allocations: 11.38 kB / 1.039 GB, free: 15.74 MB / 0.6667 GB Notification: Performance of sort global known variables: time 7.261e-05/0.5455, allocations: 121.1 kB / 1.039 GB, free: 15.64 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0002192/0.5458, allocations: 31.91 kB / 1.039 GB, free: 15.61 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001076/0.5459, allocations: 102.8 kB / 1.039 GB, free: 15.5 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0001601/0.546, allocations: 131.8 kB / 1.039 GB, free: 15.38 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.5461, allocations: 0 / 1.039 GB, free: 15.38 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 7.69e-05/0.5461, allocations: 76.48 kB / 1.039 GB, free: 15.32 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001521/0.5463, allocations: 18.5 kB / 1.039 GB, free: 15.3 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003867/0.5467, allocations: 178 kB / 1.039 GB, free: 15.12 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002898/0.547, allocations: 0.7348 MB / 1.04 GB, free: 14.36 MB / 0.6667 GB Notification: Performance of SimCode: time 3e-07/0.547, allocations: 3.938 kB / 1.04 GB, free: 14.36 MB / 0.6667 GB Notification: Performance of Templates: time 0.003089/0.5501, allocations: 1.185 MB / 1.041 GB, free: 13.2 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches