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.001519/0.001519, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001883/0.001883, allocations: 197.9 kB / 16.14 MB, free: 6.711 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.41/1.41, allocations: 222.9 MB / 239.8 MB, free: 4.625 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.566/2.566, allocations: 390.2 MB / 0.6642 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 63.89 kB / 0.8118 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8914/0.8926, allocations: 140.4 MB / 0.9489 GB, free: 9.254 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003512/0.8962, allocations: 2.363 MB / 0.9512 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001159/0.8974, allocations: 0.7709 MB / 0.952 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.507e-05/0.8975, allocations: 1.094 kB / 0.952 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005146/0.898, allocations: 146.1 kB / 0.9521 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001535/0.8982, allocations: 62.64 kB / 0.9522 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001423/0.8983, allocations: 39.27 kB / 0.9522 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002022/0.8985, allocations: 201.6 kB / 0.9524 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002059/0.8987, allocations: 79.09 kB / 0.9525 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.8989, allocations: 61.95 kB / 0.9525 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.899, allocations: 68 kB / 0.9526 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.53e-05/0.899, allocations: 7.531 kB / 0.9526 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.8992, allocations: 62.36 kB / 0.9527 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.694e-05/0.8992, allocations: 30 kB / 0.9527 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.041e-05/0.8993, allocations: 60.11 kB / 0.9527 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002386/0.8996, allocations: 180.1 kB / 0.9529 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.8996, allocations: 4 kB / 0.9529 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.82e-07/0.8996, allocations: 0 / 0.9529 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.8996, allocations: 1.562 kB / 0.9529 GB, free: 6.18 MB / 0.7169 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.0007108/0.9003, allocations: 490.8 kB / 0.9534 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.9004, allocations: 9.344 kB / 0.9534 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002244/0.9006, allocations: 26.23 kB / 0.9534 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002072/0.9008, allocations: 211.7 kB / 0.9536 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.81e-05/0.9009, allocations: 36.11 kB / 0.9537 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.756e-05/0.9009, allocations: 19.22 kB / 0.9537 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002842/0.9012, allocations: 149.7 kB / 0.9538 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.9012, allocations: 1.094 kB / 0.9538 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.9012, allocations: 5.156 kB / 0.9538 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.774e-05/0.9013, allocations: 8.469 kB / 0.9538 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001945/0.9015, allocations: 85.11 kB / 0.9539 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000733/0.9022, allocations: 0.6391 MB / 0.9545 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002258/0.9024, allocations: 63.3 kB / 0.9546 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.557e-05/0.9025, allocations: 24.67 kB / 0.9546 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.547e-05/0.9026, allocations: 5.172 kB / 0.9546 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001864/0.9028, allocations: 142.7 kB / 0.9548 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.544e-06/0.9028, allocations: 3.984 kB / 0.9548 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000385/0.9032, allocations: 161.3 kB / 0.9549 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.332e-05/0.9032, allocations: 139.5 kB / 0.9551 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.9034, allocations: 188.3 kB / 0.9552 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.529e-05/0.9034, allocations: 31.12 kB / 0.9553 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.237e-05/0.9035, allocations: 131.9 kB / 0.9554 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.559e-05/0.9035, allocations: 28.23 kB / 0.9554 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.781e-05/0.9036, allocations: 39.41 kB / 0.9555 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.435e-05/0.9037, allocations: 326.5 kB / 0.9558 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.274e-05/0.9038, allocations: 43.52 kB / 0.9558 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001101/0.9039, allocations: 105 kB / 0.9559 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002105/0.9041, allocations: 233.1 kB / 0.9561 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.9041, allocations: 0 / 0.9561 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002991/0.9044, allocations: 238.7 kB / 0.9564 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.958e-05/0.9045, allocations: 67.2 kB / 0.9564 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.9045, allocations: 6.375 kB / 0.9564 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.9045, allocations: 8.625 kB / 0.9564 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.9046, allocations: 30.77 kB / 0.9565 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.9046, allocations: 3.625 kB / 0.9565 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.9048, allocations: 29.23 kB / 0.9565 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.9048, allocations: 9.375 kB / 0.9565 GB, free: 2.809 MB / 0.7169 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.0001085/0.9049, allocations: 163.7 kB / 0.9567 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.505e-05/0.9049, allocations: 10.56 kB / 0.9567 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.964e-05/0.905, allocations: 25.11 kB / 0.9567 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.905, allocations: 0 / 0.9567 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.905, allocations: 1.25 kB / 0.9567 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.905, allocations: 3.938 kB / 0.9567 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001338/0.9051, allocations: 214 kB / 0.9569 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.9052, allocations: 1.375 kB / 0.9569 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.081e-05/0.9052, allocations: 11.78 kB / 0.9569 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.9052, allocations: 3.938 kB / 0.9569 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.9053, allocations: 6.75 kB / 0.9569 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.9053, allocations: 0 / 0.9569 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.9053, allocations: 0 / 0.9569 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003532/0.9056, allocations: 216.6 kB / 0.9571 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.684e-05/0.9057, allocations: 96.19 kB / 0.9572 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.263e-05/0.9057, allocations: 6.219 kB / 0.9572 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.148e-05/0.9058, allocations: 6.625 kB / 0.9572 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.705e-05/0.9059, allocations: 12.64 kB / 0.9573 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.956e-06/0.9059, allocations: 2.375 kB / 0.9573 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.454e-05/0.906, allocations: 136.2 kB / 0.9574 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.906, allocations: 0 / 0.9574 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002551/0.9063, allocations: 30.44 kB / 0.9574 GB, free: 1.984 MB / 0.7169 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 9.911e-05/0.9064, allocations: 97.59 kB / 0.9575 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002897/0.9067, allocations: 221.5 kB / 0.9577 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.9067, allocations: 5.812 kB / 0.9577 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.9068, allocations: 105.1 kB / 0.9578 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/0.907, allocations: 18.52 kB / 0.9578 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006088/0.9077, allocations: 332.4 kB / 0.9582 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001987/0.9079, allocations: 0.7172 MB / 0.9589 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.53e-05/0.908, allocations: 19.42 kB / 0.9589 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.187e-05/0.908, allocations: 12.06 kB / 0.9589 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of SimCode: time 5.71e-07/0.908, allocations: 0 / 0.9589 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of Templates: time 0.004402/0.9124, allocations: 1.248 MB / 0.9601 GB, free: 8 kB / 0.7169 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