Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.367/2.367, allocations: 393.5 MB / 408.4 MB, free: 10.99 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.001303/0.001303, allocations: 190.2 kB / 0.4902 GB, free: 2.223 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.59/1.59, allocations: 223.1 MB / 0.7992 GB, free: 14.72 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009194/0.0009194, allocations: 106.3 kB / 0.9396 GB, free: 1.883 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000389/0.0003891, allocations: 10.81 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3849/0.3853, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2385/0.6238, allocations: 167.1 MB / 1.392 GB, free: 2.371 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003217/0.6242, allocations: 83.94 kB / 1.392 GB, free: 2.289 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 - DAE generated: time 0.01738/0.6416, allocations: 6.45 MB / 1.399 GB, free: 11.76 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.553e-06/0.6416, allocations: 0 / 1.399 GB, free: 11.76 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 2.307e-05/0.6417, allocations: 4 kB / 1.399 GB, free: 11.76 MB / 0.9011 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.0009051/0.6426, allocations: 474.4 kB / 1.399 GB, free: 11.23 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 6.393e-05/0.6427, allocations: 8.562 kB / 1.399 GB, free: 11.22 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003228/0.643, allocations: 31.77 kB / 1.399 GB, free: 11.19 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003988/0.6434, allocations: 211.5 kB / 1.399 GB, free: 10.95 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.556e-05/0.6435, allocations: 37.89 kB / 1.4 GB, free: 10.9 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.842e-05/0.6436, allocations: 8 kB / 1.4 GB, free: 10.89 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003614/0.6439, allocations: 144.9 kB / 1.4 GB, free: 10.74 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.644, allocations: 0 / 1.4 GB, free: 10.74 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.153e-05/0.644, allocations: 15.95 kB / 1.4 GB, free: 10.72 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.745e-05/0.644, allocations: 4.188 kB / 1.4 GB, free: 10.72 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002485/0.6443, allocations: 94.69 kB / 1.4 GB, free: 10.63 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001126/0.6454, allocations: 0.6339 MB / 1.4 GB, free: 9.934 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003006/0.6457, allocations: 58.55 kB / 1.4 GB, free: 9.867 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 1.655e-05/0.6458, allocations: 0 / 1.4 GB, free: 9.867 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002289/0.646, allocations: 146.9 kB / 1.401 GB, free: 9.699 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=7): time 2.064e-06/0.646, allocations: 0 / 1.401 GB, free: 9.699 MB / 0.9011 GB Notification: Performance of matching and sorting (n=7): time 0.0005389/0.6466, allocations: 244.2 kB / 1.401 GB, free: 9.43 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.839e-05/0.6467, allocations: 140.5 kB / 1.401 GB, free: 9.262 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002128/0.6469, allocations: 174.2 kB / 1.401 GB, free: 9.086 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.6469, allocations: 25.7 kB / 1.401 GB, free: 9.055 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.6471, allocations: 139.8 kB / 1.401 GB, free: 8.91 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 3.169e-05/0.6471, allocations: 23.7 kB / 1.401 GB, free: 8.887 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.508e-06/0.6471, allocations: 0 / 1.401 GB, free: 8.887 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001587/0.6473, allocations: 330.8 kB / 1.402 GB, free: 8.555 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.6474, allocations: 39.97 kB / 1.402 GB, free: 8.516 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.6476, allocations: 114.2 kB / 1.402 GB, free: 8.371 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001656/0.6478, allocations: 107.4 kB / 1.402 GB, free: 8.254 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.6478, allocations: 0 / 1.402 GB, free: 8.254 MB / 0.9011 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004119/0.6482, allocations: 244.6 kB / 1.402 GB, free: 7.996 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 6.864e-05/0.6483, allocations: 63.41 kB / 1.402 GB, free: 7.922 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.6483, allocations: 0 / 1.402 GB, free: 7.922 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.51e-05/0.6483, allocations: 11.89 kB / 1.402 GB, free: 7.91 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/0.6485, allocations: 27.98 kB / 1.402 GB, free: 7.883 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.6485, allocations: 7.984 kB / 1.402 GB, free: 7.875 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001718/0.6487, allocations: 32.16 kB / 1.402 GB, free: 7.844 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.6487, allocations: 7.938 kB / 1.402 GB, free: 7.836 MB / 0.9011 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.000184/0.6489, allocations: 159.5 kB / 1.402 GB, free: 7.664 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.559e-05/0.6489, allocations: 19.94 kB / 1.402 GB, free: 7.645 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.339e-05/0.649, allocations: 17.39 kB / 1.402 GB, free: 7.625 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.649, allocations: 0 / 1.402 GB, free: 7.625 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.649, allocations: 3.953 kB / 1.402 GB, free: 7.621 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.649, allocations: 0 / 1.402 GB, free: 7.621 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002306/0.6492, allocations: 217.6 kB / 1.403 GB, free: 7.359 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.6492, allocations: 0 / 1.403 GB, free: 7.359 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.729e-05/0.6493, allocations: 15.94 kB / 1.403 GB, free: 7.344 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.6494, allocations: 0 / 1.403 GB, free: 7.344 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.6494, allocations: 3.984 kB / 1.403 GB, free: 7.34 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.6494, allocations: 0 / 1.403 GB, free: 7.34 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.6494, allocations: 4 kB / 1.403 GB, free: 7.336 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004469/0.6499, allocations: 218.5 kB / 1.403 GB, free: 7.098 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 7.562e-05/0.6499, allocations: 92.84 kB / 1.403 GB, free: 6.988 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.5e-05/0.65, allocations: 8.031 kB / 1.403 GB, free: 6.98 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.603e-05/0.6501, allocations: 8 kB / 1.403 GB, free: 6.973 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.081e-05/0.6502, allocations: 11.98 kB / 1.403 GB, free: 6.961 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.6502, allocations: 7.984 kB / 1.403 GB, free: 6.953 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0001311/0.6503, allocations: 140.5 kB / 1.403 GB, free: 6.816 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6504, allocations: 3.938 kB / 1.403 GB, free: 6.812 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.000275/0.6506, allocations: 28 kB / 1.403 GB, free: 6.785 MB / 0.9011 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.0001775/0.6508, allocations: 111.2 kB / 1.403 GB, free: 6.668 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0003534/0.6512, allocations: 211.3 kB / 1.403 GB, free: 6.438 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.6512, allocations: 4.062 kB / 1.403 GB, free: 6.434 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0001377/0.6513, allocations: 103.3 kB / 1.404 GB, free: 6.32 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.6516, allocations: 20.84 kB / 1.404 GB, free: 6.301 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007276/0.6523, allocations: 326.2 kB / 1.404 GB, free: 5.957 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.6527, allocations: 0.7168 MB / 1.405 GB, free: 5.215 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 9.181e-05/0.6528, allocations: 24.41 kB / 1.405 GB, free: 5.191 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.328e-05/0.6528, allocations: 11.44 kB / 1.405 GB, free: 5.18 MB / 0.9011 GB Notification: Performance of SimCode: time 2.31e-07/0.6528, allocations: 0 / 1.405 GB, free: 5.18 MB / 0.9011 GB Notification: Performance of Templates: time 0.004356/0.6572, allocations: 1.184 MB / 1.406 GB, free: 4.012 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","../files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches