Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.007365/0.007365, allocations: 100.9 kB / 15.73 MB, free: 6.031 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.00137/0.001371, allocations: 196.8 kB / 16.67 MB, free: 5.969 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.473/1.473, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.472/2.472, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001318, allocations: 60.84 kB / 0.9508 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.3773, allocations: 140.4 MB / 1.088 GB, free: 1.547 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003918/0.3812, allocations: 2.309 MB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001339/0.3826, allocations: 0.7832 MB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.25e-05/0.3827, allocations: 0 / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006179/0.3833, allocations: 147.4 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002045/0.3836, allocations: 67.61 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001852/0.3837, allocations: 55.86 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000278/0.384, allocations: 155.5 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002713/0.3843, allocations: 105 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.3845, allocations: 71.7 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001617/0.3846, allocations: 63.69 kB / 1.092 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.541e-05/0.3847, allocations: 12 kB / 1.092 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001219/0.3848, allocations: 51.89 kB / 1.092 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.772e-05/0.3849, allocations: 35.91 kB / 1.092 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001003/0.385, allocations: 71.66 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002505/0.3852, allocations: 171.4 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.3852, allocations: 0 / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.803e-06/0.3853, allocations: 0 / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.015e-06/0.3853, allocations: 0 / 1.092 GB, free: 13.44 MB / 0.8575 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.0007334/0.386, allocations: 494.4 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.3861, allocations: 12.02 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002218/0.3863, allocations: 20.84 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002469/0.3865, allocations: 216 kB / 1.093 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.767e-05/0.3866, allocations: 46.44 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.625e-05/0.3867, allocations: 16.12 kB / 1.093 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002911/0.387, allocations: 149.5 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-06/0.387, allocations: 0 / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.387, allocations: 0 / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.04e-05/0.387, allocations: 12 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001959/0.3872, allocations: 93 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008429/0.3881, allocations: 0.6402 MB / 1.094 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002428/0.3883, allocations: 54.56 kB / 1.094 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.863e-05/0.3884, allocations: 28.91 kB / 1.094 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.3885, allocations: 4 kB / 1.094 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002218/0.3887, allocations: 146.7 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.3887, allocations: 0 / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003887/0.3891, allocations: 159.3 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.3892, allocations: 140.5 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.3894, allocations: 182.6 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.3894, allocations: 29.7 kB / 1.094 GB, free: 10.76 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.3895, allocations: 143.8 kB / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.309e-05/0.3896, allocations: 19.72 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.147e-05/0.3896, allocations: 37.7 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.3898, allocations: 326.8 kB / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.11e-05/0.3899, allocations: 39.97 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001464/0.39, allocations: 109.4 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002603/0.3903, allocations: 230.4 kB / 1.095 GB, free: 9.766 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.706e-06/0.3903, allocations: 0 / 1.095 GB, free: 9.766 MB / 0.8575 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003618/0.3907, allocations: 240.6 kB / 1.095 GB, free: 9.512 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.016e-05/0.3907, allocations: 63.39 kB / 1.095 GB, free: 9.438 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.3908, allocations: 12.25 kB / 1.095 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.3908, allocations: 8 kB / 1.095 GB, free: 9.418 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.3909, allocations: 39.8 kB / 1.095 GB, free: 9.379 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.3909, allocations: 0 / 1.095 GB, free: 9.379 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001303/0.3911, allocations: 27.83 kB / 1.095 GB, free: 9.352 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.3911, allocations: 8 kB / 1.095 GB, free: 9.344 MB / 0.8575 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.000163/0.3912, allocations: 173 kB / 1.096 GB, free: 9.16 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.477e-05/0.3913, allocations: 15.81 kB / 1.096 GB, free: 9.145 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.263e-05/0.3913, allocations: 21.34 kB / 1.096 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.3913, allocations: 0 / 1.096 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3913, allocations: 0 / 1.096 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3913, allocations: 0 / 1.096 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001884/0.3915, allocations: 213.6 kB / 1.096 GB, free: 8.867 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3915, allocations: 0 / 1.096 GB, free: 8.867 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.844e-05/0.3916, allocations: 11.98 kB / 1.096 GB, free: 8.855 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.3916, allocations: 0 / 1.096 GB, free: 8.855 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/0.3917, allocations: 7.938 kB / 1.096 GB, free: 8.848 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.3917, allocations: 0 / 1.096 GB, free: 8.848 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.3917, allocations: 3.938 kB / 1.096 GB, free: 8.844 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000404/0.3921, allocations: 214.9 kB / 1.096 GB, free: 8.609 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.505e-05/0.3922, allocations: 89.05 kB / 1.096 GB, free: 8.504 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.575e-05/0.3922, allocations: 7.938 kB / 1.096 GB, free: 8.496 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.995e-05/0.3923, allocations: 11.98 kB / 1.096 GB, free: 8.484 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.807e-05/0.3924, allocations: 16.06 kB / 1.096 GB, free: 8.469 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.363e-06/0.3924, allocations: 0 / 1.096 GB, free: 8.469 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000133/0.3925, allocations: 136.4 kB / 1.096 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3926, allocations: 0 / 1.096 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002473/0.3928, allocations: 31.94 kB / 1.096 GB, free: 8.305 MB / 0.8575 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.0001649/0.393, allocations: 103.2 kB / 1.096 GB, free: 8.195 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003765/0.3934, allocations: 214.6 kB / 1.097 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3934, allocations: 4.625 kB / 1.097 GB, free: 7.957 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001376/0.3935, allocations: 111.3 kB / 1.097 GB, free: 7.836 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002337/0.3938, allocations: 16 kB / 1.097 GB, free: 7.82 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00064/0.3944, allocations: 282.4 kB / 1.097 GB, free: 7.52 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000452/0.3949, allocations: 0.7233 MB / 1.098 GB, free: 6.77 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.133e-05/0.395, allocations: 16.62 kB / 1.098 GB, free: 6.754 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.91e-05/0.395, allocations: 15.44 kB / 1.098 GB, free: 6.738 MB / 0.8575 GB Notification: Performance of SimCode: time 1.864e-06/0.395, allocations: 3.938 kB / 1.098 GB, free: 6.734 MB / 0.8575 GB Notification: Performance of Templates: time 0.004379/0.3994, allocations: 1.458 MB / 1.099 GB, free: 5.293 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches