Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.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.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.725/1.725, allocations: 387.2 MB / 394.5 MB, free: 13.71 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.0009744/0.0009745, allocations: 184.7 kB / 487 MB, free: 5.395 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.074/1.074, allocations: 221.3 MB / 0.7819 GB, free: 1.441 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.0007846/0.0007846, allocations: 93.8 kB / 0.9213 GB, free: 2.703 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 4.989e-06/5.009e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1662/0.1662, allocations: 142.3 MB / 1.205 GB, free: 26.29 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4698/0.6361, allocations: 165.5 MB / 1.367 GB, free: 11.18 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001681/0.6363, allocations: 73.72 kB / 1.367 GB, free: 11.15 MB / 0.8073 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. Notification: Performance of FrontEnd: time 0.01148/0.6478, allocations: 6.062 MB / 1.373 GB, free: 6.297 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.6478, allocations: 0 / 1.373 GB, free: 6.297 MB / 0.8073 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.0002976/0.6481, allocations: 459.5 kB / 1.373 GB, free: 5.797 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.668e-05/0.6481, allocations: 8.031 kB / 1.373 GB, free: 5.789 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001806/0.6483, allocations: 27.8 kB / 1.373 GB, free: 5.762 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.6485, allocations: 212.2 kB / 1.374 GB, free: 5.523 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.221e-05/0.6485, allocations: 29.89 kB / 1.374 GB, free: 5.488 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.071e-05/0.6485, allocations: 8 kB / 1.374 GB, free: 5.48 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001199/0.6487, allocations: 65.34 kB / 1.374 GB, free: 5.438 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001476/0.6488, allocations: 135.8 kB / 1.374 GB, free: 5.316 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.6488, allocations: 0 / 1.374 GB, free: 5.316 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.6488, allocations: 3.906 kB / 1.374 GB, free: 5.312 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.6489, allocations: 8.188 kB / 1.374 GB, free: 5.305 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004923/0.6494, allocations: 0.6017 MB / 1.374 GB, free: 4.711 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.6495, allocations: 45.25 kB / 1.374 GB, free: 4.668 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.533e-05/0.6496, allocations: 27.09 kB / 1.374 GB, free: 4.645 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.112e-05/0.6496, allocations: 0 / 1.374 GB, free: 4.645 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.663e-05/0.6497, allocations: 118.4 kB / 1.375 GB, free: 4.516 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 9.22e-07/0.6497, allocations: 0 / 1.375 GB, free: 4.516 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0001301/0.6498, allocations: 80.64 kB / 1.375 GB, free: 4.441 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.561e-05/0.6498, allocations: 136.5 kB / 1.375 GB, free: 4.277 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.883e-05/0.6499, allocations: 164.5 kB / 1.375 GB, free: 4.133 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.005e-05/0.6499, allocations: 25.7 kB / 1.375 GB, free: 4.102 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.248e-05/0.65, allocations: 134.5 kB / 1.375 GB, free: 3.973 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.458e-05/0.65, allocations: 23.61 kB / 1.375 GB, free: 3.953 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.053e-06/0.65, allocations: 4 kB / 1.375 GB, free: 3.949 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.452e-05/0.6501, allocations: 322 kB / 1.375 GB, free: 3.633 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.296e-05/0.6501, allocations: 27.44 kB / 1.375 GB, free: 3.613 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.512e-05/0.6502, allocations: 110.9 kB / 1.376 GB, free: 3.488 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.315e-05/0.6502, allocations: 37.48 kB / 1.376 GB, free: 3.465 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.6502, allocations: 7.922 kB / 1.376 GB, free: 3.457 MB / 0.8073 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001656/0.6504, allocations: 138.8 kB / 1.376 GB, free: 3.332 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 6.392e-06/0.6504, allocations: 8 kB / 1.376 GB, free: 3.324 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.6504, allocations: 0 / 1.376 GB, free: 3.324 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.6504, allocations: 7.906 kB / 1.376 GB, free: 3.316 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.6505, allocations: 31.8 kB / 1.376 GB, free: 3.289 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.6506, allocations: 15.92 kB / 1.376 GB, free: 3.273 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.6507, allocations: 23.84 kB / 1.376 GB, free: 3.25 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.6507, allocations: 4 kB / 1.376 GB, free: 3.246 MB / 0.8073 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 5.561e-05/0.6508, allocations: 149.9 kB / 1.376 GB, free: 3.09 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.763e-05/0.6508, allocations: 15.81 kB / 1.376 GB, free: 3.074 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.387e-05/0.6508, allocations: 21.31 kB / 1.376 GB, free: 3.055 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.6508, allocations: 0 / 1.376 GB, free: 3.055 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.6508, allocations: 3.984 kB / 1.376 GB, free: 3.051 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.6508, allocations: 0 / 1.376 GB, free: 3.051 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.204e-05/0.6509, allocations: 184.2 kB / 1.376 GB, free: 2.852 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.6509, allocations: 0 / 1.376 GB, free: 2.852 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.9e-05/0.651, allocations: 12 kB / 1.376 GB, free: 2.84 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.651, allocations: 0 / 1.376 GB, free: 2.84 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.651, allocations: 3.984 kB / 1.376 GB, free: 2.836 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.6511, allocations: 4 kB / 1.376 GB, free: 2.832 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.6511, allocations: 8 kB / 1.376 GB, free: 2.824 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001624/0.6512, allocations: 133.2 kB / 1.376 GB, free: 2.703 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.252e-05/0.6513, allocations: 92.89 kB / 1.376 GB, free: 2.594 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.709e-05/0.6513, allocations: 7.938 kB / 1.376 GB, free: 2.586 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.59e-05/0.6514, allocations: 15.98 kB / 1.376 GB, free: 2.57 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.126e-05/0.6514, allocations: 11.42 kB / 1.376 GB, free: 2.562 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.6515, allocations: 4 kB / 1.376 GB, free: 2.559 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5.459e-05/0.6515, allocations: 124.6 kB / 1.377 GB, free: 2.453 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002075/0.6517, allocations: 28 kB / 1.377 GB, free: 2.426 MB / 0.8073 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 7.245e-05/0.6518, allocations: 99.25 kB / 1.377 GB, free: 2.316 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001347/0.6519, allocations: 128.2 kB / 1.377 GB, free: 2.199 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.6519, allocations: 0.625 kB / 1.377 GB, free: 2.199 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.466e-05/0.652, allocations: 77.62 kB / 1.377 GB, free: 2.137 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.6522, allocations: 23.58 kB / 1.377 GB, free: 2.117 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003161/0.6525, allocations: 176.6 kB / 1.377 GB, free: 1.938 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.6526, allocations: 0.7303 MB / 1.378 GB, free: 1.184 MB / 0.8073 GB Notification: Performance of SimCode: time 2.4e-07/0.6526, allocations: 4 kB / 1.378 GB, free: 1.18 MB / 0.8073 GB Notification: Performance of Templates: time 0.002679/0.6553, allocations: 1.201 MB / 1.379 GB, free: 12 kB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","../files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches