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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.401/1.401, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001233/0.001233, allocations: 181.1 kB / 326.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.77/1.77, allocations: 205.4 MB / 0.5775 GB, free: 20.19 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.0008452/0.0008452, allocations: 94.39 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003559/0.0003559, allocations: 15.8 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2337, allocations: 106.3 MB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1955/0.4292, allocations: 148.5 MB / 1.045 GB, free: 11.19 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000303/0.4295, allocations: 79.95 kB / 1.045 GB, free: 11.11 MB / 0.698 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 - DAE generated: time 0.01389/0.4435, allocations: 5.697 MB / 1.051 GB, free: 5.336 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.703e-06/0.4435, allocations: 0 / 1.051 GB, free: 5.336 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.261e-05/0.4435, allocations: 4 kB / 1.051 GB, free: 5.332 MB / 0.698 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.0006307/0.4441, allocations: 482.3 kB / 1.051 GB, free: 4.797 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.4442, allocations: 8.031 kB / 1.051 GB, free: 4.789 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002123/0.4444, allocations: 27.8 kB / 1.051 GB, free: 4.762 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002637/0.4447, allocations: 216.8 kB / 1.051 GB, free: 4.512 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.121e-05/0.4448, allocations: 29.89 kB / 1.052 GB, free: 4.477 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.012e-05/0.4448, allocations: 12 kB / 1.052 GB, free: 4.465 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003125/0.4451, allocations: 158.8 kB / 1.052 GB, free: 4.297 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.4451, allocations: 0 / 1.052 GB, free: 4.297 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.892e-05/0.4452, allocations: 4 kB / 1.052 GB, free: 4.293 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.497e-05/0.4452, allocations: 12.12 kB / 1.052 GB, free: 4.281 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002044/0.4454, allocations: 88.52 kB / 1.052 GB, free: 4.195 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008914/0.4463, allocations: 0.6427 MB / 1.052 GB, free: 3.488 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002388/0.4466, allocations: 60.78 kB / 1.052 GB, free: 3.422 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.346e-05/0.4466, allocations: 0 / 1.052 GB, free: 3.422 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000203/0.4468, allocations: 138.9 kB / 1.053 GB, free: 3.262 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.4468, allocations: 0 / 1.053 GB, free: 3.262 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0004391/0.4472, allocations: 248.3 kB / 1.053 GB, free: 2.988 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.727e-05/0.4474, allocations: 136.5 kB / 1.053 GB, free: 2.824 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.4476, allocations: 165.9 kB / 1.053 GB, free: 2.656 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.192e-05/0.4476, allocations: 29.7 kB / 1.053 GB, free: 2.621 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 8.893e-05/0.4477, allocations: 143.8 kB / 1.053 GB, free: 2.473 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.909e-05/0.4477, allocations: 23.66 kB / 1.053 GB, free: 2.449 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.973e-06/0.4477, allocations: 0 / 1.053 GB, free: 2.449 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.4479, allocations: 326.8 kB / 1.054 GB, free: 2.121 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.192e-05/0.448, allocations: 35.97 kB / 1.054 GB, free: 2.086 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001413/0.4481, allocations: 113.4 kB / 1.054 GB, free: 1.941 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001306/0.4483, allocations: 103.4 kB / 1.054 GB, free: 1.828 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.4483, allocations: 0 / 1.054 GB, free: 1.828 MB / 0.698 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003605/0.4487, allocations: 244.8 kB / 1.054 GB, free: 1.57 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 7.296e-05/0.4487, allocations: 67.39 kB / 1.054 GB, free: 1.492 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.557e-06/0.4488, allocations: 4 kB / 1.054 GB, free: 1.488 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.4488, allocations: 4 kB / 1.054 GB, free: 1.484 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.4489, allocations: 31.92 kB / 1.054 GB, free: 1.453 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.4489, allocations: 7.953 kB / 1.054 GB, free: 1.445 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001346/0.4491, allocations: 23.83 kB / 1.054 GB, free: 1.422 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.4491, allocations: 16.16 kB / 1.054 GB, free: 1.406 MB / 0.698 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 () * Number of clocked 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 0.0001492/0.4493, allocations: 168.5 kB / 1.054 GB, free: 1.227 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.107e-05/0.4493, allocations: 11.81 kB / 1.054 GB, free: 1.215 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.253e-05/0.4493, allocations: 13.41 kB / 1.054 GB, free: 1.203 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.4493, allocations: 0 / 1.054 GB, free: 1.203 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.4493, allocations: 4 kB / 1.054 GB, free: 1.199 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.4493, allocations: 3.953 kB / 1.054 GB, free: 1.195 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001863/0.4495, allocations: 209.6 kB / 1.055 GB, free: 0.9414 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.4495, allocations: 0 / 1.055 GB, free: 0.9414 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.598e-05/0.4496, allocations: 19.98 kB / 1.055 GB, free: 0.9219 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.4497, allocations: 0 / 1.055 GB, free: 0.9219 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.4497, allocations: 4 kB / 1.055 GB, free: 0.918 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.4497, allocations: 0 / 1.055 GB, free: 0.918 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4497, allocations: 48 / 1.055 GB, free: 0.918 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000385/0.4501, allocations: 226.5 kB / 1.055 GB, free: 0.6719 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.953e-05/0.4501, allocations: 85.05 kB / 1.055 GB, free: 0.5703 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.28e-05/0.4502, allocations: 8 kB / 1.055 GB, free: 0.5625 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.367e-05/0.4503, allocations: 15.92 kB / 1.055 GB, free: 0.5469 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.116e-05/0.4504, allocations: 7.984 kB / 1.055 GB, free: 0.5391 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.164e-06/0.4504, allocations: 0 / 1.055 GB, free: 0.5391 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001052/0.4505, allocations: 135.2 kB / 1.055 GB, free: 416 kB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4505, allocations: 0 / 1.055 GB, free: 416 kB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002413/0.4507, allocations: 40 kB / 1.055 GB, free: 376 kB / 0.698 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) * Number of clocked states: 0 () * 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.0001504/0.4509, allocations: 107.2 kB / 1.055 GB, free: 256 kB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0003262/0.4512, allocations: 214.6 kB / 1.055 GB, free: 16 kB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.4512, allocations: 0.625 kB / 1.055 GB, free: 16 kB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.4002/0.8515, allocations: 109.4 kB / 1.056 GB, free: 152 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000322/0.8519, allocations: 16.5 kB / 1.056 GB, free: 152 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007358/0.8526, allocations: 332 kB / 1.056 GB, free: 151.8 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001779/0.8528, allocations: 0.7175 MB / 1.057 GB, free: 151.1 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 8.064e-05/0.8529, allocations: 16.27 kB / 1.057 GB, free: 151.1 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.278e-05/0.8529, allocations: 17.16 kB / 1.057 GB, free: 151.1 MB / 0.698 GB Notification: Performance of SimCode: time 1.273e-06/0.8529, allocations: 0 / 1.057 GB, free: 151.1 MB / 0.698 GB Notification: Performance of Templates: time 0.003813/0.8568, allocations: 1.18 MB / 1.058 GB, free: 151.1 MB / 0.698 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