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.001424/0.001424, allocations: 113.8 kB / 16.37 MB, free: 6.012 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.001575/0.001575, allocations: 191.4 kB / 17.31 MB, free: 5.613 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.421/1.421, 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.476/2.476, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001304, allocations: 61.94 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3399/0.3412, allocations: 153 MB / 1.027 GB, free: 2.051 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004096/0.3454, allocations: 2.315 MB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001286/0.3467, allocations: 0.7791 MB / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.252e-05/0.3468, allocations: 0 / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0006361/0.3475, allocations: 143.4 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001786/0.3477, allocations: 71.53 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001751/0.3478, allocations: 55.88 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002439/0.3481, allocations: 159.4 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003152/0.3484, allocations: 101 kB / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001237/0.3486, allocations: 67.77 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001612/0.3487, allocations: 71.61 kB / 1.03 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.806e-05/0.3488, allocations: 12 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.3489, allocations: 55.89 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.52e-05/0.349, allocations: 35.91 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.799e-05/0.3491, allocations: 67.66 kB / 1.031 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002997/0.3494, allocations: 175.4 kB / 1.031 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3494, allocations: 4 kB / 1.031 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3494, allocations: 0 / 1.031 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.121e-06/0.3494, allocations: 0 / 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.0009061/0.3503, allocations: 486.6 kB / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3504, allocations: 12.03 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002241/0.3506, allocations: 24.73 kB / 1.031 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.3509, allocations: 220 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.065e-05/0.351, allocations: 38.45 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.682e-05/0.3511, allocations: 16.12 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002931/0.3513, allocations: 149.5 kB / 1.032 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.3514, allocations: 0 / 1.032 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.376e-05/0.3514, allocations: 11.98 kB / 1.032 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.059e-05/0.3514, allocations: 7.984 kB / 1.032 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002039/0.3516, allocations: 79.95 kB / 1.032 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008866/0.3525, allocations: 0.6401 MB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002284/0.3528, allocations: 58.55 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.248e-05/0.3529, allocations: 32.92 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.195e-05/0.3529, allocations: 0 / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002293/0.3531, allocations: 146.3 kB / 1.033 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.3531, allocations: 0 / 1.033 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004216/0.3536, allocations: 167.2 kB / 1.033 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.509e-05/0.3537, allocations: 136.5 kB / 1.033 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001594/0.3538, allocations: 187.6 kB / 1.033 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.15e-05/0.3539, allocations: 29.7 kB / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.772e-05/0.354, allocations: 139.8 kB / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.771e-05/0.354, allocations: 23.7 kB / 1.033 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.111e-05/0.3541, allocations: 33.72 kB / 1.033 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001281/0.3542, allocations: 322.8 kB / 1.034 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.117e-05/0.3543, allocations: 39.97 kB / 1.034 GB, free: 10.69 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.3544, allocations: 115.1 kB / 1.034 GB, free: 10.54 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002521/0.3547, allocations: 234.3 kB / 1.034 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3547, allocations: 4 kB / 1.034 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003458/0.3551, allocations: 236.6 kB / 1.034 GB, free: 10.01 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.149e-05/0.3551, allocations: 67.39 kB / 1.034 GB, free: 9.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.3551, allocations: 7.938 kB / 1.034 GB, free: 9.922 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.3552, allocations: 4 kB / 1.034 GB, free: 9.918 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.3553, allocations: 36.23 kB / 1.034 GB, free: 9.883 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.3553, allocations: 0 / 1.034 GB, free: 9.883 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001328/0.3554, allocations: 23.83 kB / 1.034 GB, free: 9.859 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.804e-05/0.3555, allocations: 12 kB / 1.034 GB, free: 9.848 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.0001854/0.3557, allocations: 172.5 kB / 1.034 GB, free: 9.664 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.3557, allocations: 15.81 kB / 1.034 GB, free: 9.648 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.59e-05/0.3557, allocations: 21.33 kB / 1.035 GB, free: 9.629 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3557, allocations: 4 kB / 1.035 GB, free: 9.625 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3557, allocations: 0 / 1.035 GB, free: 9.625 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.3557, allocations: 0 / 1.035 GB, free: 9.625 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000257/0.356, allocations: 205.6 kB / 1.035 GB, free: 9.375 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.356, allocations: 3.984 kB / 1.035 GB, free: 9.371 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.759e-05/0.3561, allocations: 12 kB / 1.035 GB, free: 9.359 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.3561, allocations: 4 kB / 1.035 GB, free: 9.355 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.3561, allocations: 3.938 kB / 1.035 GB, free: 9.352 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.3561, allocations: 0 / 1.035 GB, free: 9.352 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3561, allocations: 4 kB / 1.035 GB, free: 9.348 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004518/0.3566, allocations: 222.5 kB / 1.035 GB, free: 9.105 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.87e-05/0.3567, allocations: 85 kB / 1.035 GB, free: 9.004 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.07e-05/0.3567, allocations: 11.91 kB / 1.035 GB, free: 8.992 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.138e-05/0.3568, allocations: 8 kB / 1.035 GB, free: 8.984 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.78e-05/0.3569, allocations: 11.98 kB / 1.035 GB, free: 8.973 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-06/0.3569, allocations: 3.938 kB / 1.035 GB, free: 8.969 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001736/0.3571, allocations: 135.3 kB / 1.035 GB, free: 8.836 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.81e-07/0.3571, allocations: 4 kB / 1.035 GB, free: 8.832 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002556/0.3573, allocations: 28 kB / 1.035 GB, free: 8.805 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.0001141/0.3575, allocations: 99.25 kB / 1.035 GB, free: 8.695 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003245/0.3578, allocations: 218.7 kB / 1.036 GB, free: 8.457 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3578, allocations: 0.625 kB / 1.036 GB, free: 8.457 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001308/0.3579, allocations: 111.4 kB / 1.036 GB, free: 8.336 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002307/0.3582, allocations: 19.98 kB / 1.036 GB, free: 8.316 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005759/0.3588, allocations: 286.3 kB / 1.036 GB, free: 8.012 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003499/0.3591, allocations: 0.7197 MB / 1.037 GB, free: 7.266 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.587e-05/0.3592, allocations: 12.64 kB / 1.037 GB, free: 7.254 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.521e-05/0.3592, allocations: 15.44 kB / 1.037 GB, free: 7.238 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.3592, allocations: 0 / 1.037 GB, free: 7.238 MB / 0.8106 GB Notification: Performance of Templates: time 0.004394/0.3636, allocations: 1.394 MB / 1.038 GB, free: 5.859 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 cvode -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