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.0009892/0.0009892, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.007602/0.007602, allocations: 171.6 kB / 16.26 MB, free: 6.676 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.506/1.506, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.75/2.75, allocations: 443.3 MB / 0.7175 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000412/0.0004122, allocations: 8.5 kB / 0.8796 GB, free: 41.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3558, allocations: 155.2 MB / 1.031 GB, free: 4.309 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003059/0.3589, allocations: 2.025 MB / 1.033 GB, free: 2.273 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001292/0.3602, allocations: 0.756 MB / 1.034 GB, free: 1.512 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.498e-05/0.3603, allocations: 4 kB / 1.034 GB, free: 1.508 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001072/0.3605, allocations: 19.86 kB / 1.034 GB, free: 1.488 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002386/0.3607, allocations: 59.72 kB / 1.034 GB, free: 1.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001623/0.3609, allocations: 51.89 kB / 1.034 GB, free: 1.379 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000235/0.3611, allocations: 191.4 kB / 1.034 GB, free: 1.191 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003036/0.3614, allocations: 193.8 kB / 1.034 GB, free: 0.9688 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.3616, allocations: 59.77 kB / 1.034 GB, free: 0.9102 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/0.3617, allocations: 67.69 kB / 1.034 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.846e-05/0.3617, allocations: 4 kB / 1.034 GB, free: 0.8398 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.3619, allocations: 63.86 kB / 1.034 GB, free: 0.7773 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.354e-05/0.3619, allocations: 31.91 kB / 1.035 GB, free: 0.7461 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.85e-05/0.362, allocations: 89.31 kB / 1.035 GB, free: 0.6523 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002232/0.3623, allocations: 163.4 kB / 1.035 GB, free: 0.4922 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3623, allocations: 4 kB / 1.035 GB, free: 500 kB / 0.7794 GB Notification: Performance of FrontEnd: time 1.452e-06/0.3623, allocations: 0 / 1.035 GB, free: 500 kB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.3623, allocations: 0 / 1.035 GB, free: 500 kB / 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.0007195/0.363, allocations: 470.6 kB / 1.035 GB, free: 15.97 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.3631, allocations: 12.03 kB / 1.035 GB, free: 15.96 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002099/0.3633, allocations: 24.78 kB / 1.035 GB, free: 15.93 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.3636, allocations: 216 kB / 1.035 GB, free: 15.68 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.633e-05/0.3636, allocations: 38.44 kB / 1.035 GB, free: 15.64 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.089e-05/0.3637, allocations: 16.12 kB / 1.035 GB, free: 15.62 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.364, allocations: 148.8 kB / 1.036 GB, free: 15.46 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.364, allocations: 4 kB / 1.036 GB, free: 15.46 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.364, allocations: 4 kB / 1.036 GB, free: 15.46 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.802e-05/0.364, allocations: 7.938 kB / 1.036 GB, free: 15.45 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000205/0.3642, allocations: 95.92 kB / 1.036 GB, free: 15.36 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008324/0.3651, allocations: 0.6363 MB / 1.036 GB, free: 14.65 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002149/0.3653, allocations: 62.5 kB / 1.036 GB, free: 14.58 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.3654, allocations: 36.91 kB / 1.036 GB, free: 14.54 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.138e-05/0.3655, allocations: 0 / 1.036 GB, free: 14.54 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002044/0.3657, allocations: 150.7 kB / 1.037 GB, free: 14.37 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.3657, allocations: 0 / 1.037 GB, free: 14.37 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0003995/0.3661, allocations: 175.2 kB / 1.037 GB, free: 14.19 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.092e-05/0.3662, allocations: 132.5 kB / 1.037 GB, free: 14.03 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001707/0.3663, allocations: 179.2 kB / 1.037 GB, free: 13.84 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.3664, allocations: 29.7 kB / 1.037 GB, free: 13.81 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 8.91e-05/0.3665, allocations: 139.8 kB / 1.037 GB, free: 13.66 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.527e-05/0.3665, allocations: 19.72 kB / 1.037 GB, free: 13.64 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.26e-05/0.3665, allocations: 21.7 kB / 1.037 GB, free: 13.62 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.3667, allocations: 322.8 kB / 1.038 GB, free: 13.29 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.487e-05/0.3668, allocations: 43.98 kB / 1.038 GB, free: 13.25 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.3669, allocations: 116.8 kB / 1.038 GB, free: 13.11 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002646/0.3672, allocations: 238.3 kB / 1.038 GB, free: 12.82 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.3672, allocations: 4 kB / 1.038 GB, free: 12.82 MB / 0.795 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003797/0.3676, allocations: 248.5 kB / 1.038 GB, free: 12.55 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.111e-05/0.3677, allocations: 63.41 kB / 1.038 GB, free: 12.48 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.837e-05/0.3677, allocations: 7.938 kB / 1.038 GB, free: 12.47 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.3677, allocations: 4 kB / 1.038 GB, free: 12.47 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.3678, allocations: 27.92 kB / 1.038 GB, free: 12.44 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.3679, allocations: 7.984 kB / 1.038 GB, free: 12.43 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001403/0.368, allocations: 32.16 kB / 1.038 GB, free: 12.4 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.368, allocations: 8 kB / 1.038 GB, free: 12.39 MB / 0.795 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.0001397/0.3682, allocations: 168.9 kB / 1.039 GB, free: 12.21 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.251e-05/0.3682, allocations: 11.91 kB / 1.039 GB, free: 12.2 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.387e-05/0.3683, allocations: 21.33 kB / 1.039 GB, free: 12.18 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.3683, allocations: 0 / 1.039 GB, free: 12.18 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3683, allocations: 0 / 1.039 GB, free: 12.18 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.3683, allocations: 4 kB / 1.039 GB, free: 12.18 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001806/0.3685, allocations: 217.5 kB / 1.039 GB, free: 11.92 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3685, allocations: 4 kB / 1.039 GB, free: 11.91 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.048e-05/0.3686, allocations: 11.98 kB / 1.039 GB, free: 11.9 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.3686, allocations: 0 / 1.039 GB, free: 11.9 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.3686, allocations: 7.938 kB / 1.039 GB, free: 11.89 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.3686, allocations: 0 / 1.039 GB, free: 11.89 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3686, allocations: 0 / 1.039 GB, free: 11.89 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003896/0.369, allocations: 218.7 kB / 1.039 GB, free: 11.66 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.525e-05/0.3691, allocations: 84.92 kB / 1.039 GB, free: 11.55 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.828e-05/0.3691, allocations: 7.969 kB / 1.039 GB, free: 11.55 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.546e-05/0.3692, allocations: 23.92 kB / 1.039 GB, free: 11.52 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.797e-05/0.3693, allocations: 7.984 kB / 1.039 GB, free: 11.52 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.877e-06/0.3693, allocations: 4 kB / 1.039 GB, free: 11.51 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001144/0.3694, allocations: 131.6 kB / 1.039 GB, free: 11.38 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3694, allocations: 4 kB / 1.039 GB, free: 11.38 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002456/0.3697, allocations: 32 kB / 1.039 GB, free: 11.35 MB / 0.795 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.0001116/0.3698, allocations: 107.2 kB / 1.039 GB, free: 11.23 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003175/0.3701, allocations: 219.2 kB / 1.04 GB, free: 10.99 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3701, allocations: 0 / 1.04 GB, free: 10.99 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001324/0.3703, allocations: 115.5 kB / 1.04 GB, free: 10.87 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.3705, allocations: 19.98 kB / 1.04 GB, free: 10.85 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000572/0.3711, allocations: 350.1 kB / 1.04 GB, free: 10.48 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002695/0.3714, allocations: 0.7121 MB / 1.041 GB, free: 9.746 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 7.812e-05/0.3714, allocations: 24.62 kB / 1.041 GB, free: 9.723 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.155e-05/0.3715, allocations: 11.44 kB / 1.041 GB, free: 9.711 MB / 0.795 GB Notification: Performance of SimCode: time 4.81e-07/0.3715, allocations: 0 / 1.041 GB, free: 9.711 MB / 0.795 GB Notification: Performance of Templates: time 0.003861/0.3754, allocations: 1.237 MB / 1.042 GB, free: 8.492 MB / 0.795 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