Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001633/0.001633, allocations: 104.2 kB / 19.74 MB, free: 2.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001953/0.001953, allocations: 212.3 kB / 23.04 MB, free: 4.867 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.451/1.451, allocations: 230.6 MB / 256.8 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.202/3.202, allocations: 0.49 GB / 0.7959 GB, free: 35.37 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002041/0.002041, allocations: 63.91 kB / 1.155 GB, free: 25.18 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3683/0.3703, allocations: 176.1 MB / 1.327 GB, free: 0.9648 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.00404/0.3743, allocations: 2.319 MB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001538/0.3759, allocations: 0.8182 MB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.597e-05/0.376, allocations: 4 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0006109/0.3766, allocations: 143.4 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001958/0.3768, allocations: 63.66 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001911/0.377, allocations: 67.81 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002618/0.3772, allocations: 167.4 kB / 1.331 GB, free: 13.38 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002496/0.3775, allocations: 81.12 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001766/0.3777, allocations: 75.7 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001629/0.3778, allocations: 63.67 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.462e-05/0.3779, allocations: 12 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.378, allocations: 51.89 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.621e-05/0.378, allocations: 35.91 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.127e-05/0.3781, allocations: 59.72 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002775/0.3784, allocations: 183.3 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3784, allocations: 4 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.472e-06/0.3784, allocations: 0 / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.789e-06/0.3784, allocations: 0 / 1.331 GB, free: 12.82 MB / 1.029 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.000741/0.3792, allocations: 429.2 kB / 1.332 GB, free: 12.36 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.3792, allocations: 8.031 kB / 1.332 GB, free: 12.35 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002939/0.3795, allocations: 36.81 kB / 1.332 GB, free: 12.31 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002444/0.3797, allocations: 162.8 kB / 1.332 GB, free: 12.13 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.09e-05/0.3798, allocations: 67.72 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.512e-05/0.3799, allocations: 16 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003134/0.3802, allocations: 179.4 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.3802, allocations: 0 / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.3802, allocations: 8 kB / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/0.3802, allocations: 4 kB / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002188/0.3804, allocations: 117.5 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008091/0.3812, allocations: 0.5542 MB / 1.333 GB, free: 11.11 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002496/0.3815, allocations: 88.25 kB / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.858e-05/0.3816, allocations: 50.62 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.352e-05/0.3816, allocations: 7.922 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002271/0.3818, allocations: 168.7 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.203e-06/0.3818, allocations: 0 / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004259/0.3823, allocations: 226.6 kB / 1.333 GB, free: 10.5 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.98e-05/0.3823, allocations: 136.5 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001825/0.3825, allocations: 182.9 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.3825, allocations: 33.7 kB / 1.334 GB, free: 10.11 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.3827, allocations: 147.6 kB / 1.334 GB, free: 9.961 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.896e-05/0.3827, allocations: 27.78 kB / 1.334 GB, free: 9.934 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.866e-05/0.3827, allocations: 33.7 kB / 1.334 GB, free: 9.895 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3829, allocations: 326.8 kB / 1.334 GB, free: 9.566 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.383, allocations: 95.38 kB / 1.334 GB, free: 9.461 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001776/0.3832, allocations: 162.7 kB / 1.334 GB, free: 9.258 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002831/0.3835, allocations: 234.4 kB / 1.335 GB, free: 8.977 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3835, allocations: 3.938 kB / 1.335 GB, free: 8.973 MB / 1.029 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004178/0.3839, allocations: 304.1 kB / 1.335 GB, free: 8.645 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.814e-05/0.384, allocations: 67.34 kB / 1.335 GB, free: 8.566 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.384, allocations: 0 / 1.335 GB, free: 8.566 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.384, allocations: 4 kB / 1.335 GB, free: 8.562 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001184/0.3841, allocations: 39.84 kB / 1.335 GB, free: 8.523 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.3841, allocations: 8.25 kB / 1.335 GB, free: 8.516 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001257/0.3842, allocations: 24.2 kB / 1.335 GB, free: 8.492 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.3843, allocations: 12 kB / 1.335 GB, free: 8.48 MB / 1.029 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.0001431/0.3844, allocations: 156.9 kB / 1.335 GB, free: 8.312 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.741e-05/0.3844, allocations: 19.84 kB / 1.335 GB, free: 8.293 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.733e-05/0.3845, allocations: 17.39 kB / 1.335 GB, free: 8.266 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.3845, allocations: 0 / 1.335 GB, free: 8.266 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3845, allocations: 0 / 1.335 GB, free: 8.266 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.3845, allocations: 0 / 1.335 GB, free: 8.266 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001494/0.3846, allocations: 145.3 kB / 1.335 GB, free: 8.094 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.3846, allocations: 4 kB / 1.335 GB, free: 8.09 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.837e-05/0.3847, allocations: 15.92 kB / 1.335 GB, free: 8.074 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.3847, allocations: 4 kB / 1.335 GB, free: 8.07 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.3847, allocations: 11.94 kB / 1.335 GB, free: 8.059 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.3847, allocations: 0 / 1.335 GB, free: 8.059 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3847, allocations: 0 / 1.335 GB, free: 8.059 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004613/0.3852, allocations: 282 kB / 1.336 GB, free: 7.746 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.209e-05/0.3852, allocations: 11.92 kB / 1.336 GB, free: 7.734 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.157e-05/0.3852, allocations: 11.94 kB / 1.336 GB, free: 7.723 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.805e-05/0.3853, allocations: 11.98 kB / 1.336 GB, free: 7.711 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.3854, allocations: 11.98 kB / 1.336 GB, free: 7.699 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.233e-06/0.3854, allocations: 4.062 kB / 1.336 GB, free: 7.695 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001131/0.3855, allocations: 128.3 kB / 1.336 GB, free: 7.57 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3855, allocations: 0 / 1.336 GB, free: 7.57 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002398/0.3858, allocations: 31.95 kB / 1.336 GB, free: 7.539 MB / 1.029 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.0001175/0.3859, allocations: 115.2 kB / 1.336 GB, free: 7.418 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003848/0.3863, allocations: 292.4 kB / 1.336 GB, free: 7.09 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3863, allocations: 0 / 1.336 GB, free: 7.09 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.3864, allocations: 121.1 kB / 1.336 GB, free: 6.953 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002367/0.3866, allocations: 23.97 kB / 1.336 GB, free: 6.93 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006598/0.3873, allocations: 354.8 kB / 1.337 GB, free: 6.543 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001206/0.3874, allocations: 102.3 kB / 1.337 GB, free: 6.418 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.754e-05/0.3874, allocations: 19.42 kB / 1.337 GB, free: 6.402 MB / 1.029 GB Notification: Performance of SimCode: time 3.01e-07/0.3874, allocations: 0 / 1.337 GB, free: 6.402 MB / 1.029 GB Notification: Performance of Templates: time 0.003863/0.3913, allocations: 1.779 MB / 1.338 GB, free: 4.637 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.403932776069269]