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.001776/0.001776, allocations: 115.2 kB / 16.37 MB, free: 5.539 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.001818/0.001818, allocations: 189.4 kB / 17.3 MB, free: 5.18 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.51/2.51, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.00133, allocations: 64.81 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.3343, allocations: 153 MB / 1.027 GB, free: 2.055 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004196/0.3386, allocations: 2.315 MB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001285/0.3399, allocations: 0.7751 MB / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.133e-05/0.34, allocations: 7.938 kB / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0006521/0.3406, allocations: 147.4 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001915/0.3408, allocations: 67.59 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001554/0.341, allocations: 47.83 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002688/0.3413, allocations: 171.5 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003249/0.3416, allocations: 101 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.3418, allocations: 59.77 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001827/0.342, allocations: 71.69 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.579e-05/0.342, allocations: 12 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001313/0.3421, allocations: 55.88 kB / 1.03 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.45e-05/0.3422, allocations: 31.91 kB / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.06e-05/0.3423, allocations: 67.61 kB / 1.031 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002596/0.3426, allocations: 175.4 kB / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3426, allocations: 0 / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3426, allocations: 4 kB / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.3426, allocations: 4 kB / 1.031 GB, free: 13.94 MB / 0.8106 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.0008251/0.3434, allocations: 486.6 kB / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.3435, allocations: 8.031 kB / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002522/0.3438, allocations: 32.73 kB / 1.031 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002857/0.344, allocations: 212 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.108e-05/0.3441, allocations: 34.45 kB / 1.031 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.738e-05/0.3442, allocations: 24.09 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002898/0.3445, allocations: 148.2 kB / 1.032 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.3445, allocations: 0 / 1.032 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.608e-05/0.3445, allocations: 0 / 1.032 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.072e-05/0.3445, allocations: 7.938 kB / 1.032 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001986/0.3447, allocations: 91.92 kB / 1.032 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008386/0.3456, allocations: 0.6363 MB / 1.032 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002382/0.3458, allocations: 58.5 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.283e-05/0.3459, allocations: 28.91 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.346, allocations: 7.984 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002091/0.3462, allocations: 142.8 kB / 1.033 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 3.045e-06/0.3462, allocations: 4 kB / 1.033 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.000376/0.3466, allocations: 167.2 kB / 1.033 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.053e-05/0.3467, allocations: 132.5 kB / 1.033 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001753/0.3468, allocations: 179.7 kB / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.099e-05/0.3469, allocations: 37.64 kB / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.347, allocations: 139.8 kB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.448e-05/0.347, allocations: 23.7 kB / 1.033 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.971e-05/0.3471, allocations: 37.7 kB / 1.033 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001167/0.3472, allocations: 322.8 kB / 1.034 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.941e-05/0.3473, allocations: 35.98 kB / 1.034 GB, free: 10.69 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.3475, allocations: 119.1 kB / 1.034 GB, free: 10.54 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000246/0.3477, allocations: 226.3 kB / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.3477, allocations: 0 / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003478/0.3481, allocations: 248.6 kB / 1.034 GB, free: 10.01 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.679e-05/0.3482, allocations: 59.41 kB / 1.034 GB, free: 9.938 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.3482, allocations: 7.938 kB / 1.034 GB, free: 9.93 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.3482, allocations: 0 / 1.034 GB, free: 9.93 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.3483, allocations: 31.97 kB / 1.034 GB, free: 9.898 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.3483, allocations: 8.562 kB / 1.034 GB, free: 9.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/0.3485, allocations: 27.84 kB / 1.034 GB, free: 9.863 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.3485, allocations: 8 kB / 1.034 GB, free: 9.855 MB / 0.8106 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.0001512/0.3487, allocations: 171.3 kB / 1.034 GB, free: 9.672 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.331e-05/0.3487, allocations: 15.81 kB / 1.034 GB, free: 9.656 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.866e-05/0.3487, allocations: 21.33 kB / 1.034 GB, free: 9.637 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3487, allocations: 0 / 1.034 GB, free: 9.637 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3488, allocations: 4 kB / 1.034 GB, free: 9.633 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.3488, allocations: 4 kB / 1.035 GB, free: 9.629 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000179/0.349, allocations: 209.6 kB / 1.035 GB, free: 9.375 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.349, allocations: 0 / 1.035 GB, free: 9.375 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.108e-05/0.349, allocations: 11.98 kB / 1.035 GB, free: 9.363 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.3491, allocations: 0 / 1.035 GB, free: 9.363 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.796e-05/0.3491, allocations: 11.88 kB / 1.035 GB, free: 9.352 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.3491, allocations: 0 / 1.035 GB, free: 9.352 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.3491, allocations: 0 / 1.035 GB, free: 9.352 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003814/0.3495, allocations: 222.5 kB / 1.035 GB, free: 9.109 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.263e-05/0.3495, allocations: 85.05 kB / 1.035 GB, free: 9.008 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.482e-05/0.3496, allocations: 11.94 kB / 1.035 GB, free: 8.996 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.687e-05/0.3497, allocations: 7.984 kB / 1.035 GB, free: 8.988 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.731e-05/0.3498, allocations: 11.92 kB / 1.035 GB, free: 8.977 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.3498, allocations: 8 kB / 1.035 GB, free: 8.969 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.228e-05/0.3499, allocations: 127.2 kB / 1.035 GB, free: 8.844 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3499, allocations: 0 / 1.035 GB, free: 8.844 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000239/0.3501, allocations: 32.06 kB / 1.035 GB, free: 8.812 MB / 0.8106 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.0001187/0.3503, allocations: 103.2 kB / 1.035 GB, free: 8.699 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003071/0.3506, allocations: 218.6 kB / 1.036 GB, free: 8.461 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3506, allocations: 0 / 1.036 GB, free: 8.461 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.3507, allocations: 104 kB / 1.036 GB, free: 8.348 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002284/0.3509, allocations: 20.19 kB / 1.036 GB, free: 8.328 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005387/0.3515, allocations: 298.2 kB / 1.036 GB, free: 8.012 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002667/0.3518, allocations: 0.7119 MB / 1.037 GB, free: 7.273 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.842e-05/0.3518, allocations: 24.62 kB / 1.037 GB, free: 7.25 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.01e-05/0.3519, allocations: 11.44 kB / 1.037 GB, free: 7.238 MB / 0.8106 GB Notification: Performance of SimCode: time 2.5e-07/0.3519, allocations: 0 / 1.037 GB, free: 7.238 MB / 0.8106 GB Notification: Performance of Templates: time 0.004044/0.3559, allocations: 1.404 MB / 1.038 GB, free: 5.855 MB / 0.8106 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches