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.5/1.5, allocations: 249.3 MB / 261.8 MB, free: 5.812 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.001006/0.001006, allocations: 176.9 kB / 321.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.455/1.455, allocations: 205.2 MB / 0.572 GB, free: 10.68 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.0008351/0.0008351, allocations: 104.5 kB / 0.6764 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.502e-05/2.505e-05, allocations: 0 / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.2159, allocations: 106.3 MB / 0.8918 GB, free: 6.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7676/0.9835, allocations: 148.5 MB / 1.037 GB, free: 3.969 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002229/0.9838, allocations: 81.58 kB / 1.037 GB, free: 3.922 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 - DAE generated: time 0.01266/0.9965, allocations: 5.625 MB / 1.042 GB, free: 15.33 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.042e-06/0.9965, allocations: 0 / 1.042 GB, free: 15.33 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 9.408e-06/0.9965, allocations: 4 kB / 1.042 GB, free: 15.32 MB / 0.6667 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.0004573/0.997, allocations: 460.1 kB / 1.043 GB, free: 14.82 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.997, allocations: 8.031 kB / 1.043 GB, free: 14.82 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002001/0.9972, allocations: 27.8 kB / 1.043 GB, free: 14.79 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002013/0.9974, allocations: 208.7 kB / 1.043 GB, free: 14.55 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.985e-05/0.9975, allocations: 37.55 kB / 1.043 GB, free: 14.52 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.83e-05/0.9975, allocations: 11.75 kB / 1.043 GB, free: 14.51 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002183/0.9977, allocations: 155.5 kB / 1.043 GB, free: 14.38 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.9978, allocations: 3.984 kB / 1.043 GB, free: 14.37 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.9978, allocations: 3.75 kB / 1.043 GB, free: 14.37 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.796e-05/0.9978, allocations: 12.12 kB / 1.043 GB, free: 14.36 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001319/0.9979, allocations: 74.17 kB / 1.043 GB, free: 14.31 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007175/0.9987, allocations: 0.6372 MB / 1.044 GB, free: 13.68 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.9989, allocations: 52.5 kB / 1.044 GB, free: 13.63 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.65e-05/0.9989, allocations: 23.23 kB / 1.044 GB, free: 13.61 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 1.281e-05/0.9989, allocations: 4 kB / 1.044 GB, free: 13.61 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001603/0.9991, allocations: 141.2 kB / 1.044 GB, free: 13.45 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=7): time 1.633e-06/0.9991, allocations: 0 / 1.044 GB, free: 13.45 MB / 0.6667 GB Notification: Performance of matching and sorting (n=7): time 0.0002323/0.9994, allocations: 119.9 kB / 1.044 GB, free: 13.34 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.712e-05/0.9995, allocations: 136.5 kB / 1.044 GB, free: 13.18 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/0.9996, allocations: 164 kB / 1.045 GB, free: 13.03 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.9996, allocations: 25.7 kB / 1.045 GB, free: 13 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 7.922e-05/0.9997, allocations: 145 kB / 1.045 GB, free: 12.86 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.257e-05/0.9997, allocations: 26.09 kB / 1.045 GB, free: 12.84 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.723e-06/0.9998, allocations: 0 / 1.045 GB, free: 12.84 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.9999, allocations: 324.8 kB / 1.045 GB, free: 12.52 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.78e-05/1, allocations: 30.19 kB / 1.045 GB, free: 12.5 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001062/1, allocations: 104.1 kB / 1.045 GB, free: 12.38 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001037/1, allocations: 100.6 kB / 1.045 GB, free: 12.29 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/1, allocations: 4 kB / 1.045 GB, free: 12.28 MB / 0.6667 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002822/1, allocations: 230.2 kB / 1.045 GB, free: 12.07 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 5.196e-05/1.001, allocations: 63.34 kB / 1.046 GB, free: 11.99 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/1.001, allocations: 0 / 1.046 GB, free: 11.99 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/1.001, allocations: 4.312 kB / 1.046 GB, free: 11.99 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/1.001, allocations: 39.62 kB / 1.046 GB, free: 11.95 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.354e-05/1.001, allocations: 7.938 kB / 1.046 GB, free: 11.95 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/1.001, allocations: 27.83 kB / 1.046 GB, free: 11.92 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.703e-05/1.001, allocations: 11.56 kB / 1.046 GB, free: 11.91 MB / 0.6667 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 0.0001201/1.001, allocations: 148.6 kB / 1.046 GB, free: 11.76 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.995e-05/1.001, allocations: 11.84 kB / 1.046 GB, free: 11.75 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.46e-05/1.001, allocations: 17.09 kB / 1.046 GB, free: 11.73 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/1.001, allocations: 4 kB / 1.046 GB, free: 11.73 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/1.001, allocations: 3.953 kB / 1.046 GB, free: 11.73 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/1.001, allocations: 7.922 kB / 1.046 GB, free: 11.72 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001806/1.001, allocations: 210.8 kB / 1.046 GB, free: 11.48 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/1.001, allocations: 0 / 1.046 GB, free: 11.48 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.075e-05/1.001, allocations: 15.92 kB / 1.046 GB, free: 11.47 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/1.001, allocations: 0 / 1.046 GB, free: 11.47 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/1.001, allocations: 4 kB / 1.046 GB, free: 11.46 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/1.001, allocations: 0 / 1.046 GB, free: 11.46 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/1.001, allocations: 4 kB / 1.046 GB, free: 11.46 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002727/1.002, allocations: 197.1 kB / 1.046 GB, free: 11.28 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 4.922e-05/1.002, allocations: 88.48 kB / 1.046 GB, free: 11.18 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.97e-05/1.002, allocations: 7.984 kB / 1.046 GB, free: 11.17 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.372e-05/1.002, allocations: 8 kB / 1.046 GB, free: 11.16 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.229e-05/1.002, allocations: 11.36 kB / 1.046 GB, free: 11.15 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/1.002, allocations: 4.156 kB / 1.046 GB, free: 11.15 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 9.935e-05/1.002, allocations: 139 kB / 1.046 GB, free: 11.03 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.2e-07/1.002, allocations: 0 / 1.046 GB, free: 11.03 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0002173/1.002, allocations: 31.52 kB / 1.046 GB, free: 11 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.0001276/1.002, allocations: 107.7 kB / 1.047 GB, free: 10.89 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0002444/1.003, allocations: 203 kB / 1.047 GB, free: 10.69 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/1.003, allocations: 4.562 kB / 1.047 GB, free: 10.69 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 8.997e-05/1.003, allocations: 105.2 kB / 1.047 GB, free: 10.59 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001676/1.003, allocations: 14.56 kB / 1.047 GB, free: 10.58 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004249/1.003, allocations: 193.1 kB / 1.047 GB, free: 10.39 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/1.004, allocations: 0.7196 MB / 1.048 GB, free: 9.648 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 6.974e-05/1.004, allocations: 16.77 kB / 1.048 GB, free: 9.633 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.521e-05/1.004, allocations: 11.44 kB / 1.048 GB, free: 9.621 MB / 0.6667 GB Notification: Performance of SimCode: time 2.6e-07/1.004, allocations: 0 / 1.048 GB, free: 9.621 MB / 0.6667 GB Notification: Performance of Templates: time 0.003541/1.007, allocations: 1.186 MB / 1.049 GB, free: 8.457 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