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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001515/0.001515, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001763/0.001763, allocations: 193.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.77/2.77, allocations: 472.6 MB / 0.7451 GB, free: 4.621 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 64.61 kB / 0.912 GB, free: 33.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3314, allocations: 159.9 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003936/0.3354, allocations: 2.296 MB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001259/0.3367, allocations: 0.787 MB / 1.071 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.3368, allocations: 4 kB / 1.071 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0006002/0.3374, allocations: 143.4 kB / 1.071 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001897/0.3376, allocations: 67.59 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001567/0.3378, allocations: 51.89 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000222/0.338, allocations: 163.5 kB / 1.072 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000254/0.3383, allocations: 100.8 kB / 1.072 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001234/0.3384, allocations: 67.7 kB / 1.072 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.3386, allocations: 67.69 kB / 1.072 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.55e-05/0.3386, allocations: 12 kB / 1.072 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.3387, allocations: 55.89 kB / 1.072 GB, free: 6.582 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.19e-05/0.3388, allocations: 43.83 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.705e-05/0.3389, allocations: 59.73 kB / 1.072 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002399/0.3392, allocations: 167.7 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.3392, allocations: 4 kB / 1.072 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3392, allocations: 4 kB / 1.072 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.3392, allocations: 0 / 1.072 GB, free: 6.309 MB / 0.8262 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.0007841/0.34, allocations: 496.4 kB / 1.073 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.34, allocations: 8.031 kB / 1.073 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002225/0.3403, allocations: 28.83 kB / 1.073 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002415/0.3405, allocations: 216 kB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.474e-05/0.3406, allocations: 38.39 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.265e-05/0.3406, allocations: 16.12 kB / 1.073 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003489/0.341, allocations: 159 kB / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.341, allocations: 0 / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.341, allocations: 0 / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.981e-05/0.341, allocations: 4 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001958/0.3412, allocations: 92.83 kB / 1.073 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008625/0.3421, allocations: 0.6363 MB / 1.074 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002405/0.3424, allocations: 62.55 kB / 1.074 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.805e-05/0.3424, allocations: 28.91 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/0.3425, allocations: 0 / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001974/0.3427, allocations: 146.8 kB / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 4.188e-06/0.3427, allocations: 3.984 kB / 1.074 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003968/0.3431, allocations: 163.2 kB / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.623e-05/0.3432, allocations: 140.5 kB / 1.074 GB, free: 3.848 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001846/0.3434, allocations: 182.9 kB / 1.074 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.893e-05/0.3434, allocations: 29.7 kB / 1.075 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.983e-05/0.3435, allocations: 135.7 kB / 1.075 GB, free: 3.484 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.965e-05/0.3436, allocations: 23.78 kB / 1.075 GB, free: 3.461 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.151e-05/0.3437, allocations: 37.62 kB / 1.075 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.3438, allocations: 330.8 kB / 1.075 GB, free: 3.086 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.292e-05/0.3439, allocations: 31.98 kB / 1.075 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.344, allocations: 119 kB / 1.075 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/0.3443, allocations: 226.4 kB / 1.075 GB, free: 2.633 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.3443, allocations: 4 kB / 1.075 GB, free: 2.629 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003499/0.3447, allocations: 244.7 kB / 1.076 GB, free: 2.371 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.123e-05/0.3448, allocations: 59.41 kB / 1.076 GB, free: 2.301 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.3448, allocations: 7.938 kB / 1.076 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.3448, allocations: 4.312 kB / 1.076 GB, free: 2.289 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.345, allocations: 31.92 kB / 1.076 GB, free: 2.258 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.345, allocations: 4 kB / 1.076 GB, free: 2.254 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.3451, allocations: 27.83 kB / 1.076 GB, free: 2.227 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.3451, allocations: 8 kB / 1.076 GB, free: 2.219 MB / 0.8262 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 (voltageControl.ctrl.tSwitch,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.connected,$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001548/0.3453, allocations: 175.3 kB / 1.076 GB, free: 2.031 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.51e-05/0.3453, allocations: 11.81 kB / 1.076 GB, free: 2.02 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.63e-05/0.3454, allocations: 21.33 kB / 1.076 GB, free: 1.996 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.3454, allocations: 8 kB / 1.076 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3454, allocations: 0 / 1.076 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.3454, allocations: 0 / 1.076 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001781/0.3456, allocations: 209.6 kB / 1.076 GB, free: 1.734 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3456, allocations: 0 / 1.076 GB, free: 1.734 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.936e-05/0.3457, allocations: 8 kB / 1.076 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.3457, allocations: 0 / 1.076 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.3457, allocations: 7.938 kB / 1.076 GB, free: 1.719 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3457, allocations: 0 / 1.076 GB, free: 1.719 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3457, allocations: 0 / 1.076 GB, free: 1.719 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003879/0.3461, allocations: 222.5 kB / 1.076 GB, free: 1.477 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.311e-05/0.3462, allocations: 89.03 kB / 1.076 GB, free: 1.371 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.176e-05/0.3463, allocations: 11.94 kB / 1.076 GB, free: 1.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.544e-05/0.3464, allocations: 15.92 kB / 1.077 GB, free: 1.344 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.105e-05/0.3464, allocations: 0 / 1.077 GB, free: 1.344 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.3464, allocations: 8 kB / 1.077 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001083/0.3466, allocations: 136.4 kB / 1.077 GB, free: 1.203 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3466, allocations: 0 / 1.077 GB, free: 1.203 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002692/0.3468, allocations: 31.91 kB / 1.077 GB, free: 1.172 MB / 0.8262 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001966/0.3471, allocations: 110.6 kB / 1.077 GB, free: 1.059 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003521/0.3474, allocations: 214.6 kB / 1.077 GB, free: 0.8242 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3474, allocations: 0.625 kB / 1.077 GB, free: 0.8242 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.3476, allocations: 111.3 kB / 1.077 GB, free: 0.7031 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.3478, allocations: 18.05 kB / 1.077 GB, free: 0.6875 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006406/0.3485, allocations: 294.3 kB / 1.077 GB, free: 384 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/0.3488, allocations: 0.7119 MB / 1.078 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.221e-05/0.3489, allocations: 20.64 kB / 1.078 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.92e-05/0.3489, allocations: 11.44 kB / 1.078 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.3489, allocations: 0 / 1.078 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of Templates: time 0.004131/0.353, allocations: 1.408 MB / 1.079 GB, free: 14.21 MB / 0.8419 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches