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.006524/0.006524, allocations: 101.8 kB / 15.73 MB, free: 6.477 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.001595/0.001595, allocations: 192.4 kB / 16.67 MB, free: 6.391 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.48/1.48, allocations: 222.9 MB / 240.4 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.831/2.831, allocations: 461.9 MB / 0.7348 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 68.12 kB / 1.054 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3705/0.372, allocations: 157.4 MB / 1.208 GB, free: 9.711 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004822/0.3769, allocations: 2.316 MB / 1.21 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00165/0.3786, allocations: 0.7753 MB / 1.211 GB, free: 6.594 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001957/0.3788, allocations: 7.938 kB / 1.211 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0007998/0.3796, allocations: 155.3 kB / 1.211 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002758/0.3799, allocations: 63.61 kB / 1.211 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002184/0.3801, allocations: 55.88 kB / 1.211 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003166/0.3805, allocations: 159.5 kB / 1.211 GB, free: 6.16 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003131/0.3808, allocations: 97.03 kB / 1.211 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001685/0.381, allocations: 71.7 kB / 1.211 GB, free: 5.996 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002035/0.3812, allocations: 67.75 kB / 1.211 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.004e-05/0.3812, allocations: 12 kB / 1.211 GB, free: 5.918 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001467/0.3814, allocations: 51.89 kB / 1.211 GB, free: 5.867 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.013e-05/0.3814, allocations: 43.83 kB / 1.211 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 9.424e-05/0.3815, allocations: 63.67 kB / 1.212 GB, free: 5.762 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002967/0.3818, allocations: 171.4 kB / 1.212 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3819, allocations: 0 / 1.212 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3819, allocations: 0 / 1.212 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.744e-06/0.3819, allocations: 0 / 1.212 GB, free: 5.594 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.0009053/0.3828, allocations: 494.5 kB / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.3828, allocations: 12.62 kB / 1.212 GB, free: 5.039 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002605/0.3831, allocations: 28.72 kB / 1.212 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002724/0.3834, allocations: 216.1 kB / 1.212 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.683e-05/0.3835, allocations: 30.45 kB / 1.212 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.126e-05/0.3835, allocations: 16.12 kB / 1.212 GB, free: 4.711 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003039/0.3838, allocations: 148.2 kB / 1.213 GB, free: 4.551 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.3838, allocations: 3.938 kB / 1.213 GB, free: 4.547 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.3839, allocations: 8 kB / 1.213 GB, free: 4.539 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.914e-05/0.3839, allocations: 4 kB / 1.213 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001999/0.3841, allocations: 83.94 kB / 1.213 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009244/0.385, allocations: 0.6441 MB / 1.213 GB, free: 3.746 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002448/0.3853, allocations: 58.56 kB / 1.213 GB, free: 3.68 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.163e-05/0.3854, allocations: 24.84 kB / 1.213 GB, free: 3.652 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.3854, allocations: 4 kB / 1.213 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000214/0.3856, allocations: 138.8 kB / 1.214 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.793e-06/0.3856, allocations: 0 / 1.214 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003985/0.386, allocations: 175.2 kB / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.13e-05/0.3861, allocations: 132.5 kB / 1.214 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.3863, allocations: 182.9 kB / 1.214 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.3863, allocations: 25.7 kB / 1.214 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.539e-05/0.3864, allocations: 143.7 kB / 1.214 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/0.3864, allocations: 15.81 kB / 1.214 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.987e-05/0.3865, allocations: 49.61 kB / 1.214 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.3866, allocations: 318.8 kB / 1.215 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.968e-05/0.3867, allocations: 39.98 kB / 1.215 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.3869, allocations: 109.4 kB / 1.215 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003465/0.3872, allocations: 234.3 kB / 1.215 GB, free: 1.922 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.3872, allocations: 4 kB / 1.215 GB, free: 1.918 MB / 0.9669 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003636/0.3876, allocations: 240.7 kB / 1.215 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001205/0.3877, allocations: 59.41 kB / 1.215 GB, free: 1.594 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.3878, allocations: 3.938 kB / 1.215 GB, free: 1.59 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.3878, allocations: 7.938 kB / 1.215 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.3879, allocations: 35.92 kB / 1.215 GB, free: 1.547 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.3879, allocations: 7.984 kB / 1.215 GB, free: 1.539 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001344/0.3881, allocations: 23.75 kB / 1.215 GB, free: 1.516 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.3881, allocations: 12.28 kB / 1.215 GB, free: 1.504 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.0001603/0.3883, allocations: 169 kB / 1.215 GB, free: 1.324 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.421e-05/0.3883, allocations: 11.91 kB / 1.215 GB, free: 1.312 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.437e-05/0.3883, allocations: 21.33 kB / 1.215 GB, free: 1.289 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.3883, allocations: 4.031 kB / 1.215 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.3884, allocations: 0 / 1.215 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.3884, allocations: 0 / 1.215 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001922/0.3886, allocations: 213.6 kB / 1.216 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.3886, allocations: 4 kB / 1.216 GB, free: 1.023 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.823e-05/0.3887, allocations: 12 kB / 1.216 GB, free: 1.012 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/0.3887, allocations: 3.984 kB / 1.216 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.3887, allocations: 7.938 kB / 1.216 GB, free: 1 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.3887, allocations: 0 / 1.216 GB, free: 1 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3887, allocations: 0 / 1.216 GB, free: 1 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000384/0.3891, allocations: 222.8 kB / 1.216 GB, free: 0.7578 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.3892, allocations: 85.05 kB / 1.216 GB, free: 0.6562 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.963e-05/0.3892, allocations: 8 kB / 1.216 GB, free: 0.6484 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.138e-05/0.3893, allocations: 11.98 kB / 1.216 GB, free: 0.6367 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.741e-05/0.3894, allocations: 15.92 kB / 1.216 GB, free: 0.6211 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.829e-06/0.3894, allocations: 4 kB / 1.216 GB, free: 0.6172 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001045/0.3895, allocations: 127.2 kB / 1.216 GB, free: 0.4922 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3895, allocations: 0 / 1.216 GB, free: 0.4922 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002569/0.3898, allocations: 31.91 kB / 1.216 GB, free: 472 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.0001144/0.3899, allocations: 103.2 kB / 1.216 GB, free: 360 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003212/0.3903, allocations: 218.6 kB / 1.216 GB, free: 116 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3903, allocations: 0 / 1.216 GB, free: 116 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.3904, allocations: 103.4 kB / 1.217 GB, free: 0 / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000244/0.3907, allocations: 21.38 kB / 1.217 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006145/0.3913, allocations: 298.8 kB / 1.217 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002751/0.3916, allocations: 0.7119 MB / 1.218 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.664e-05/0.3916, allocations: 20.62 kB / 1.218 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.604e-05/0.3917, allocations: 15.44 kB / 1.218 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of SimCode: time 2.1e-07/0.3917, allocations: 3.938 kB / 1.218 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of Templates: time 0.004479/0.3962, allocations: 1.421 MB / 1.219 GB, free: 13.48 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