Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.006533/0.006533, allocations: 100.7 kB / 15.73 MB, free: 6.062 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.001284/0.001284, allocations: 188.8 kB / 16.67 MB, free: 5.973 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.503/1.503, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.572/2.572, allocations: 437 MB / 0.7105 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 59.91 kB / 1.018 GB, free: 9.473 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.078/1.079, allocations: 151.6 MB / 1.167 GB, free: 3.871 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.00447/1.083, allocations: 2.317 MB / 1.169 GB, free: 1.543 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001384/1.085, allocations: 0.7792 MB / 1.17 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001398/1.085, allocations: 0 / 1.17 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0006965/1.086, allocations: 155.3 kB / 1.17 GB, free: 0.6055 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002403/1.086, allocations: 63.66 kB / 1.17 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001998/1.086, allocations: 55.83 kB / 1.17 GB, free: 500 kB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003774/1.087, allocations: 155.5 kB / 1.17 GB, free: 344 kB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002791/1.087, allocations: 93.06 kB / 1.17 GB, free: 248 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/1.087, allocations: 71.7 kB / 1.17 GB, free: 176 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002025/1.087, allocations: 71.72 kB / 1.17 GB, free: 104 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.782e-05/1.087, allocations: 12 kB / 1.17 GB, free: 92 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001533/1.087, allocations: 55.89 kB / 1.17 GB, free: 36 kB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 6.104e-05/1.088, allocations: 35.91 kB / 1.17 GB, free: 0 / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001185/1.088, allocations: 71.72 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.000306/1.088, allocations: 171.9 kB / 1.171 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/1.088, allocations: 0 / 1.171 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.613e-06/1.088, allocations: 4 kB / 1.171 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 8.246e-06/1.088, allocations: 0 / 1.171 GB, free: 15.76 MB / 0.9044 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.0007776/1.089, allocations: 494.3 kB / 1.171 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/1.089, allocations: 8.031 kB / 1.171 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002312/1.089, allocations: 32.77 kB / 1.171 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002638/1.089, allocations: 218.3 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.701e-05/1.089, allocations: 38.45 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.448e-05/1.089, allocations: 16.11 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002943/1.09, allocations: 153.2 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/1.09, allocations: 0 / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/1.09, allocations: 4 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.209e-05/1.09, allocations: 8 kB / 1.171 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002016/1.09, allocations: 83.89 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008807/1.091, allocations: 0.6364 MB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003008/1.091, allocations: 62.48 kB / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.081e-05/1.091, allocations: 28.91 kB / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/1.091, allocations: 11.98 kB / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001996/1.092, allocations: 138.7 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/1.092, allocations: 0 / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.000396/1.092, allocations: 159.4 kB / 1.173 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.428e-05/1.092, allocations: 140.4 kB / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001704/1.092, allocations: 183.4 kB / 1.173 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/1.092, allocations: 33.7 kB / 1.173 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 9.566e-05/1.092, allocations: 136 kB / 1.173 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.627e-05/1.092, allocations: 23.88 kB / 1.173 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.192e-05/1.092, allocations: 41.66 kB / 1.173 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001146/1.093, allocations: 322.8 kB / 1.173 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.935e-05/1.093, allocations: 39.89 kB / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001335/1.093, allocations: 109.4 kB / 1.174 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002684/1.093, allocations: 238.3 kB / 1.174 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/1.093, allocations: 0 / 1.174 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000382/1.094, allocations: 240.7 kB / 1.174 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.374e-05/1.094, allocations: 63.41 kB / 1.174 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/1.094, allocations: 7.938 kB / 1.174 GB, free: 11.74 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/1.094, allocations: 4 kB / 1.174 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/1.094, allocations: 28.23 kB / 1.174 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/1.094, allocations: 11.94 kB / 1.174 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/1.094, allocations: 31.81 kB / 1.174 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.805e-05/1.094, allocations: 8 kB / 1.174 GB, free: 11.66 MB / 0.9044 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.0001404/1.094, allocations: 167.5 kB / 1.174 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.541e-05/1.094, allocations: 11.95 kB / 1.174 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.488e-05/1.094, allocations: 21.33 kB / 1.174 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/1.094, allocations: 3.938 kB / 1.174 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/1.094, allocations: 4 kB / 1.174 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/1.094, allocations: 0 / 1.174 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001812/1.094, allocations: 217.5 kB / 1.175 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/1.094, allocations: 0 / 1.175 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.991e-05/1.094, allocations: 8 kB / 1.175 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/1.094, allocations: 0 / 1.175 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/1.094, allocations: 7.938 kB / 1.175 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.207e-06/1.094, allocations: 3.984 kB / 1.175 GB, free: 11.15 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/1.095, allocations: 0 / 1.175 GB, free: 11.15 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003994/1.095, allocations: 214.8 kB / 1.175 GB, free: 10.92 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.712e-05/1.095, allocations: 89.05 kB / 1.175 GB, free: 10.81 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.324e-05/1.095, allocations: 7.938 kB / 1.175 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.437e-05/1.095, allocations: 11.98 kB / 1.175 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.039e-05/1.095, allocations: 8 kB / 1.175 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/1.095, allocations: 0 / 1.175 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001117/1.095, allocations: 144.7 kB / 1.175 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.31e-07/1.095, allocations: 64 / 1.175 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002525/1.096, allocations: 36 kB / 1.175 GB, free: 10.61 MB / 0.9044 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.0001084/1.096, allocations: 99.25 kB / 1.175 GB, free: 10.5 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003284/1.096, allocations: 222.6 kB / 1.175 GB, free: 10.26 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/1.096, allocations: 0 / 1.175 GB, free: 10.26 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001263/1.096, allocations: 100 kB / 1.175 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/1.096, allocations: 28.45 kB / 1.175 GB, free: 10.12 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006359/1.097, allocations: 282 kB / 1.176 GB, free: 9.82 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004301/1.098, allocations: 0.7118 MB / 1.176 GB, free: 9.082 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.651e-05/1.098, allocations: 20.64 kB / 1.176 GB, free: 9.062 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.238e-05/1.098, allocations: 11.44 kB / 1.176 GB, free: 9.051 MB / 0.9044 GB Notification: Performance of SimCode: time 3.7e-07/1.098, allocations: 3.938 kB / 1.176 GB, free: 9.047 MB / 0.9044 GB Notification: Performance of Templates: time 0.004424/1.102, allocations: 1.431 MB / 1.178 GB, free: 7.633 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches