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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001243/0.001244, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 223.2 MB / 239.9 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.774/2.774, allocations: 436.5 MB / 0.7104 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000398/0.0003981, allocations: 8 kB / 0.8708 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7974/0.7978, allocations: 153.6 MB / 1.021 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.002822/0.8007, allocations: 1.952 MB / 1.023 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001173/0.8019, allocations: 0.7135 MB / 1.023 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.135e-05/0.802, allocations: 4 kB / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001121/0.8021, allocations: 19.84 kB / 1.023 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001953/0.8023, allocations: 43.92 kB / 1.023 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001515/0.8025, allocations: 39.83 kB / 1.024 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.8027, allocations: 91.81 kB / 1.024 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002631/0.8029, allocations: 185.8 kB / 1.024 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.8031, allocations: 55.77 kB / 1.024 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.8032, allocations: 43.84 kB / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.1e-05/0.8032, allocations: 8 kB / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.275e-05/0.8033, allocations: 31.86 kB / 1.024 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.85e-05/0.8034, allocations: 27.89 kB / 1.024 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.91e-05/0.8034, allocations: 49.64 kB / 1.024 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001811/0.8036, allocations: 117.7 kB / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.8036, allocations: 0 / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.493e-06/0.8037, allocations: 0 / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.8037, allocations: 8 kB / 1.024 GB, free: 13.67 MB / 0.7794 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.0006882/0.8044, allocations: 470.4 kB / 1.025 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.8044, allocations: 11.98 kB / 1.025 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000232/0.8047, allocations: 27.8 kB / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002527/0.8049, allocations: 212.8 kB / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.651e-05/0.805, allocations: 41.88 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.036e-05/0.805, allocations: 8 kB / 1.025 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002874/0.8053, allocations: 149.5 kB / 1.025 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.8054, allocations: 3.984 kB / 1.025 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.8054, allocations: 8 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.219e-05/0.8054, allocations: 8.125 kB / 1.025 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002049/0.8056, allocations: 84.52 kB / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009124/0.8065, allocations: 0.645 MB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002354/0.8068, allocations: 70.48 kB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.092e-05/0.8068, allocations: 0 / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002109/0.807, allocations: 138.9 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.807, allocations: 0 / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004449/0.8075, allocations: 252.2 kB / 1.026 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.256e-05/0.8076, allocations: 132.5 kB / 1.026 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.8078, allocations: 174.4 kB / 1.026 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.8078, allocations: 33.7 kB / 1.026 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.429e-05/0.8079, allocations: 139.7 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.737e-05/0.8079, allocations: 23.73 kB / 1.027 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.021e-05/0.8079, allocations: 7.938 kB / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.8081, allocations: 330.8 kB / 1.027 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.414e-05/0.8082, allocations: 39.97 kB / 1.027 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.8083, allocations: 113.4 kB / 1.027 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001448/0.8085, allocations: 107.3 kB / 1.027 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.8085, allocations: 4 kB / 1.027 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003566/0.8089, allocations: 244.6 kB / 1.027 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.671e-05/0.8089, allocations: 63.39 kB / 1.027 GB, free: 9.805 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.809, allocations: 4.312 kB / 1.027 GB, free: 9.801 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.809, allocations: 8 kB / 1.028 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.8091, allocations: 31.92 kB / 1.028 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.8091, allocations: 0 / 1.028 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001382/0.8093, allocations: 31.83 kB / 1.028 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.8093, allocations: 8 kB / 1.028 GB, free: 9.723 MB / 0.7794 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.0001524/0.8095, allocations: 164 kB / 1.028 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.511e-05/0.8095, allocations: 19.91 kB / 1.028 GB, free: 9.527 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.236e-05/0.8095, allocations: 9.406 kB / 1.028 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.8095, allocations: 0 / 1.028 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.8095, allocations: 4 kB / 1.028 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.8096, allocations: 3.984 kB / 1.028 GB, free: 9.512 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001893/0.8098, allocations: 217.5 kB / 1.028 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.8098, allocations: 0 / 1.028 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.8099, allocations: 15.98 kB / 1.028 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.8099, allocations: 0 / 1.028 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.8099, allocations: 4 kB / 1.028 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.8099, allocations: 4 kB / 1.028 GB, free: 9.227 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.8099, allocations: 0 / 1.028 GB, free: 9.227 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003863/0.8103, allocations: 222.6 kB / 1.028 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.302e-05/0.8104, allocations: 88.86 kB / 1.028 GB, free: 8.879 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/0.8104, allocations: 12.02 kB / 1.028 GB, free: 8.867 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.327e-05/0.8105, allocations: 16.06 kB / 1.028 GB, free: 8.852 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.336e-05/0.8106, allocations: 3.984 kB / 1.028 GB, free: 8.848 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.8106, allocations: 4 kB / 1.028 GB, free: 8.844 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001025/0.8107, allocations: 140.2 kB / 1.028 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8107, allocations: 3.938 kB / 1.028 GB, free: 8.703 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002531/0.811, allocations: 32 kB / 1.028 GB, free: 8.672 MB / 0.7794 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.0001239/0.8111, allocations: 99.33 kB / 1.029 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003621/0.8115, allocations: 234.6 kB / 1.029 GB, free: 8.309 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.8115, allocations: 0 / 1.029 GB, free: 8.309 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.8116, allocations: 103.4 kB / 1.029 GB, free: 8.195 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002026/0.8118, allocations: 21.94 kB / 1.029 GB, free: 8.176 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006043/0.8125, allocations: 342.1 kB / 1.029 GB, free: 7.82 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.8128, allocations: 0.7158 MB / 1.03 GB, free: 7.078 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.22e-05/0.8129, allocations: 24.62 kB / 1.03 GB, free: 7.055 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.328e-05/0.8129, allocations: 11.44 kB / 1.03 GB, free: 7.043 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.8129, allocations: 0 / 1.03 GB, free: 7.043 MB / 0.7794 GB Notification: Performance of Templates: time 0.003845/0.8168, allocations: 1.189 MB / 1.031 GB, free: 5.867 MB / 0.7794 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