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.001363/0.001363, allocations: 102.3 kB / 19.7 MB, free: 2.246 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.001534/0.001534, allocations: 222.5 kB / 23.01 MB, free: 5.086 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.473/1.473, allocations: 230.6 MB / 256.8 MB, free: 7.98 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.314/3.314, allocations: 0.49 GB / 0.7958 GB, free: 33.57 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.002099/0.002099, allocations: 73.64 kB / 1.155 GB, free: 25.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4497/0.4518, allocations: 176.1 MB / 1.327 GB, free: 1.449 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004465/0.4563, allocations: 2.382 MB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001761/0.458, allocations: 0.8842 MB / 1.33 GB, free: 14.17 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.4581, allocations: 4 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0007404/0.4589, allocations: 164.2 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002183/0.4591, allocations: 63.67 kB / 1.331 GB, free: 13.94 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002344/0.4593, allocations: 63.8 kB / 1.331 GB, free: 13.88 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002903/0.4596, allocations: 163.5 kB / 1.331 GB, free: 13.72 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002773/0.4599, allocations: 81.12 kB / 1.331 GB, free: 13.64 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001904/0.4601, allocations: 71.7 kB / 1.331 GB, free: 13.57 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.4603, allocations: 75.67 kB / 1.331 GB, free: 13.49 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.536e-05/0.4603, allocations: 12 kB / 1.331 GB, free: 13.48 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001389/0.4604, allocations: 55.89 kB / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.83e-05/0.4605, allocations: 39.83 kB / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.492e-05/0.4606, allocations: 67.67 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003246/0.4609, allocations: 191.3 kB / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.4609, allocations: 0 / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.474e-06/0.4609, allocations: 0 / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.127e-05/0.4609, allocations: 3.938 kB / 1.331 GB, free: 13.13 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.0008849/0.4618, allocations: 417.2 kB / 1.332 GB, free: 12.68 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.4619, allocations: 12.03 kB / 1.332 GB, free: 12.67 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000372/0.4622, allocations: 40.81 kB / 1.332 GB, free: 12.63 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002812/0.4625, allocations: 158.9 kB / 1.332 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.089e-05/0.4626, allocations: 67.72 kB / 1.332 GB, free: 12.37 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.993e-05/0.4627, allocations: 12 kB / 1.332 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003236/0.463, allocations: 152.7 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.463, allocations: 0 / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.463, allocations: 4 kB / 1.332 GB, free: 12.19 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.197e-05/0.463, allocations: 8 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002089/0.4632, allocations: 91.81 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009503/0.4642, allocations: 0.5965 MB / 1.333 GB, free: 11.44 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002428/0.4644, allocations: 58.56 kB / 1.333 GB, free: 11.38 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.314e-05/0.4645, allocations: 24.91 kB / 1.333 GB, free: 11.35 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.253e-05/0.4645, allocations: 0 / 1.333 GB, free: 11.35 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002385/0.4648, allocations: 154.8 kB / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 3.276e-06/0.4648, allocations: 3.984 kB / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004021/0.4652, allocations: 163.5 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.92e-05/0.4653, allocations: 132.5 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001984/0.4655, allocations: 187.2 kB / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.4655, allocations: 25.7 kB / 1.334 GB, free: 10.61 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.4656, allocations: 148 kB / 1.334 GB, free: 10.46 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.873e-05/0.4656, allocations: 23.84 kB / 1.334 GB, free: 10.43 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.774e-05/0.4657, allocations: 37.67 kB / 1.334 GB, free: 10.39 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001654/0.4659, allocations: 326.8 kB / 1.334 GB, free: 10.06 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001064/0.466, allocations: 39.97 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001601/0.4661, allocations: 113.3 kB / 1.334 GB, free: 9.879 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003045/0.4664, allocations: 226.4 kB / 1.334 GB, free: 9.605 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.4664, allocations: 0 / 1.334 GB, free: 9.605 MB / 1.029 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003914/0.4668, allocations: 240.7 kB / 1.335 GB, free: 9.352 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.862e-05/0.4669, allocations: 67.7 kB / 1.335 GB, free: 9.273 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.4669, allocations: 8 kB / 1.335 GB, free: 9.266 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.4669, allocations: 4 kB / 1.335 GB, free: 9.262 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.467, allocations: 31.86 kB / 1.335 GB, free: 9.23 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.467, allocations: 8.062 kB / 1.335 GB, free: 9.223 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001388/0.4672, allocations: 27.83 kB / 1.335 GB, free: 9.195 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.4672, allocations: 12 kB / 1.335 GB, free: 9.184 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.0001648/0.4674, allocations: 169 kB / 1.335 GB, free: 9.004 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.249e-05/0.4674, allocations: 15.89 kB / 1.335 GB, free: 8.988 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.815e-05/0.4674, allocations: 13.41 kB / 1.335 GB, free: 8.965 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.4674, allocations: 4 kB / 1.335 GB, free: 8.961 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.4674, allocations: 3.984 kB / 1.335 GB, free: 8.957 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.4674, allocations: 0 / 1.335 GB, free: 8.957 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001968/0.4676, allocations: 184.6 kB / 1.335 GB, free: 8.734 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.4676, allocations: 0 / 1.335 GB, free: 8.734 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.108e-05/0.4677, allocations: 15.92 kB / 1.335 GB, free: 8.719 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.4677, allocations: 0 / 1.335 GB, free: 8.719 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.4677, allocations: 4 kB / 1.335 GB, free: 8.715 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.4677, allocations: 8 kB / 1.335 GB, free: 8.707 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4677, allocations: 0 / 1.335 GB, free: 8.707 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004088/0.4681, allocations: 214.7 kB / 1.335 GB, free: 8.473 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.565e-05/0.4682, allocations: 15.83 kB / 1.335 GB, free: 8.457 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.801e-05/0.4682, allocations: 4.031 kB / 1.335 GB, free: 8.453 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.365e-05/0.4683, allocations: 12 kB / 1.335 GB, free: 8.441 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.826e-05/0.4684, allocations: 15.98 kB / 1.335 GB, free: 8.426 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/0.4684, allocations: 0 / 1.335 GB, free: 8.426 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.00013/0.4685, allocations: 140.3 kB / 1.336 GB, free: 8.289 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4685, allocations: 0 / 1.336 GB, free: 8.289 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002558/0.4688, allocations: 31.94 kB / 1.336 GB, free: 8.258 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.00013/0.4689, allocations: 99.25 kB / 1.336 GB, free: 8.152 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000368/0.4693, allocations: 215.2 kB / 1.336 GB, free: 7.918 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4693, allocations: 4 kB / 1.336 GB, free: 7.914 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001202/0.4694, allocations: 87.33 kB / 1.336 GB, free: 7.816 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002381/0.4696, allocations: 23.86 kB / 1.336 GB, free: 7.793 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007153/0.4703, allocations: 320.4 kB / 1.336 GB, free: 7.445 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000422/0.4708, allocations: 0.7239 MB / 1.337 GB, free: 6.695 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.978e-05/0.4708, allocations: 11.44 kB / 1.337 GB, free: 6.688 MB / 1.029 GB Notification: Performance of SimCode: time 3.31e-07/0.4708, allocations: 0 / 1.337 GB, free: 6.688 MB / 1.029 GB Notification: Performance of Templates: time 0.004252/0.475, allocations: 1.736 MB / 1.339 GB, free: 4.961 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.987225187011063]