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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.01069/0.01069, allocations: 99.91 kB / 15.73 MB, free: 6.023 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.001825/0.001825, allocations: 187.6 kB / 16.67 MB, free: 5.961 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.475/1.475, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.787/2.787, allocations: 461.8 MB / 0.7347 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002253/0.002253, allocations: 68.11 kB / 1.054 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3662/0.3685, allocations: 157.4 MB / 1.208 GB, free: 9.664 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004452/0.373, allocations: 2.313 MB / 1.21 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001687/0.3747, allocations: 0.7792 MB / 1.211 GB, free: 6.551 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002191/0.3749, allocations: 3.938 kB / 1.211 GB, free: 6.547 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0008446/0.3758, allocations: 147.4 kB / 1.211 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002579/0.3761, allocations: 63.61 kB / 1.211 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002549/0.3764, allocations: 63.86 kB / 1.211 GB, free: 6.277 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000312/0.3767, allocations: 155.5 kB / 1.211 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003052/0.377, allocations: 97.05 kB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001653/0.3772, allocations: 71.7 kB / 1.211 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002062/0.3774, allocations: 67.69 kB / 1.211 GB, free: 5.895 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.565e-05/0.3774, allocations: 12 kB / 1.211 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001479/0.3776, allocations: 51.89 kB / 1.211 GB, free: 5.832 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.235e-05/0.3777, allocations: 39.89 kB / 1.211 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 9.661e-05/0.3778, allocations: 63.67 kB / 1.212 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003091/0.3781, allocations: 171.4 kB / 1.212 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.3781, allocations: 4 kB / 1.212 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.124e-06/0.3781, allocations: 3.938 kB / 1.212 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.114e-05/0.3781, allocations: 0 / 1.212 GB, free: 5.555 MB / 0.9669 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.0009432/0.3791, allocations: 490.5 kB / 1.212 GB, free: 5.016 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.3791, allocations: 12.62 kB / 1.212 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002695/0.3794, allocations: 24.73 kB / 1.212 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002908/0.3797, allocations: 216.1 kB / 1.212 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.895e-05/0.3798, allocations: 38.45 kB / 1.212 GB, free: 4.688 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.643e-05/0.3798, allocations: 16.12 kB / 1.212 GB, free: 4.672 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003291/0.3802, allocations: 144.1 kB / 1.213 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.3802, allocations: 0 / 1.213 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.125e-05/0.3802, allocations: 8 kB / 1.213 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.581e-05/0.3802, allocations: 4 kB / 1.213 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000217/0.3805, allocations: 91.81 kB / 1.213 GB, free: 4.414 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009314/0.3814, allocations: 0.6441 MB / 1.213 GB, free: 3.707 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002518/0.3817, allocations: 54.56 kB / 1.213 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.299e-05/0.3818, allocations: 36.91 kB / 1.213 GB, free: 3.605 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.3818, allocations: 0 / 1.213 GB, free: 3.605 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001937/0.382, allocations: 142.7 kB / 1.214 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.382, allocations: 0 / 1.214 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003693/0.3824, allocations: 163.3 kB / 1.214 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.261e-05/0.3825, allocations: 136.5 kB / 1.214 GB, free: 3.105 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.3826, allocations: 182.9 kB / 1.214 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.3827, allocations: 33.7 kB / 1.214 GB, free: 2.875 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.038e-05/0.3827, allocations: 139.7 kB / 1.214 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.3828, allocations: 15.81 kB / 1.214 GB, free: 2.715 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.904e-05/0.3829, allocations: 41.61 kB / 1.214 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.383, allocations: 322.8 kB / 1.215 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.386e-05/0.3831, allocations: 39.97 kB / 1.215 GB, free: 2.305 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.3832, allocations: 114.4 kB / 1.215 GB, free: 2.16 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.3834, allocations: 226.4 kB / 1.215 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3835, allocations: 4 kB / 1.215 GB, free: 1.883 MB / 0.9669 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003533/0.3838, allocations: 232.7 kB / 1.215 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.787e-05/0.3839, allocations: 67.39 kB / 1.215 GB, free: 1.559 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.3839, allocations: 7.938 kB / 1.215 GB, free: 1.551 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.3839, allocations: 7.938 kB / 1.215 GB, free: 1.543 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.384, allocations: 32.23 kB / 1.215 GB, free: 1.512 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.3841, allocations: 8 kB / 1.215 GB, free: 1.504 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.3842, allocations: 23.73 kB / 1.215 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.607e-05/0.3842, allocations: 12 kB / 1.215 GB, free: 1.469 MB / 0.9669 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.0001518/0.3844, allocations: 171.3 kB / 1.215 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.552e-05/0.3844, allocations: 11.91 kB / 1.215 GB, free: 1.273 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.559e-05/0.3845, allocations: 21.38 kB / 1.215 GB, free: 1.25 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.3845, allocations: 0 / 1.215 GB, free: 1.25 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3845, allocations: 4 kB / 1.215 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3845, allocations: 0 / 1.215 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.3847, allocations: 217.6 kB / 1.216 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.3847, allocations: 0 / 1.216 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.315e-05/0.3848, allocations: 11.98 kB / 1.216 GB, free: 0.9727 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.3848, allocations: 4 kB / 1.216 GB, free: 0.9688 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.3848, allocations: 3.938 kB / 1.216 GB, free: 0.9648 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3848, allocations: 0 / 1.216 GB, free: 0.9648 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.3848, allocations: 0 / 1.216 GB, free: 0.9648 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003973/0.3852, allocations: 226.8 kB / 1.216 GB, free: 0.7188 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.036e-05/0.3853, allocations: 81.02 kB / 1.216 GB, free: 0.6211 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.166e-05/0.3853, allocations: 7.969 kB / 1.216 GB, free: 0.6133 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.289e-05/0.3854, allocations: 11.98 kB / 1.216 GB, free: 0.6016 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.896e-05/0.3855, allocations: 11.98 kB / 1.216 GB, free: 0.5898 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.658e-06/0.3855, allocations: 4 kB / 1.216 GB, free: 0.5859 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001045/0.3856, allocations: 131.2 kB / 1.216 GB, free: 468 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3856, allocations: 8.062 kB / 1.216 GB, free: 460 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002621/0.3859, allocations: 31.91 kB / 1.216 GB, free: 428 kB / 0.9669 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.0001032/0.386, allocations: 99.25 kB / 1.216 GB, free: 320 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003109/0.3863, allocations: 214.6 kB / 1.216 GB, free: 80 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3864, allocations: 0.625 kB / 1.216 GB, free: 80 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001401/0.3865, allocations: 107.3 kB / 1.217 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002281/0.3867, allocations: 25.02 kB / 1.217 GB, free: 15.94 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005807/0.3873, allocations: 290.3 kB / 1.217 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.3876, allocations: 0.7119 MB / 1.218 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.833e-05/0.3877, allocations: 20.62 kB / 1.218 GB, free: 14.87 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.814e-05/0.3877, allocations: 15.44 kB / 1.218 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.3877, allocations: 3.938 kB / 1.218 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of Templates: time 0.004191/0.3919, allocations: 1.464 MB / 1.219 GB, free: 13.41 MB / 0.9825 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