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.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: 104.4 kB / 19.7 MB, free: 2.125 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.001547/0.001547, allocations: 215.2 kB / 22.99 MB, free: 4.945 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.502/1.502, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.422/3.422, allocations: 0.5107 GB / 0.8166 GB, free: 17.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.002106/0.002106, allocations: 67.34 kB / 1.187 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3607/0.3628, allocations: 181.9 MB / 1.365 GB, free: 13.81 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004269/0.3671, allocations: 2.313 MB / 1.367 GB, free: 11.48 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001604/0.3687, allocations: 0.826 MB / 1.368 GB, free: 10.64 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.677e-05/0.3688, allocations: 0 / 1.368 GB, free: 10.64 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0006087/0.3694, allocations: 147.3 kB / 1.368 GB, free: 10.5 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001981/0.3696, allocations: 71.66 kB / 1.368 GB, free: 10.43 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001927/0.3698, allocations: 67.8 kB / 1.368 GB, free: 10.36 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002494/0.37, allocations: 159.5 kB / 1.368 GB, free: 10.21 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002344/0.3703, allocations: 77.12 kB / 1.368 GB, free: 10.13 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000166/0.3704, allocations: 75.7 kB / 1.368 GB, free: 10.05 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001806/0.3706, allocations: 67.67 kB / 1.368 GB, free: 9.988 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.012e-05/0.3706, allocations: 12 kB / 1.368 GB, free: 9.977 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001229/0.3708, allocations: 55.89 kB / 1.368 GB, free: 9.922 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.293e-05/0.3708, allocations: 35.84 kB / 1.368 GB, free: 9.887 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 8.833e-05/0.3709, allocations: 59.73 kB / 1.368 GB, free: 9.828 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002951/0.3712, allocations: 187.2 kB / 1.369 GB, free: 9.645 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3712, allocations: 0 / 1.369 GB, free: 9.645 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.413e-06/0.3712, allocations: 0 / 1.369 GB, free: 9.645 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.411e-06/0.3712, allocations: 0 / 1.369 GB, free: 9.645 MB / 1.061 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.0007654/0.372, allocations: 421.3 kB / 1.369 GB, free: 9.191 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.372, allocations: 8.031 kB / 1.369 GB, free: 9.184 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000319/0.3723, allocations: 36.81 kB / 1.369 GB, free: 9.148 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.3726, allocations: 163.8 kB / 1.369 GB, free: 8.965 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.6e-05/0.3727, allocations: 63.72 kB / 1.369 GB, free: 8.891 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.3727, allocations: 15.94 kB / 1.369 GB, free: 8.875 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003303/0.3731, allocations: 180 kB / 1.369 GB, free: 8.68 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.3731, allocations: 3.984 kB / 1.369 GB, free: 8.676 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.3731, allocations: 4 kB / 1.369 GB, free: 8.672 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.724e-05/0.3731, allocations: 8 kB / 1.369 GB, free: 8.664 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000234/0.3733, allocations: 117.5 kB / 1.37 GB, free: 8.543 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008803/0.3742, allocations: 0.5581 MB / 1.37 GB, free: 7.941 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002851/0.3745, allocations: 76.27 kB / 1.37 GB, free: 7.852 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.545e-05/0.3746, allocations: 54.61 kB / 1.37 GB, free: 7.789 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.675e-05/0.3746, allocations: 4 kB / 1.37 GB, free: 7.785 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002616/0.3749, allocations: 176.6 kB / 1.37 GB, free: 7.582 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.3749, allocations: 4 kB / 1.37 GB, free: 7.578 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004763/0.3754, allocations: 218.9 kB / 1.371 GB, free: 7.34 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.3755, allocations: 136.5 kB / 1.371 GB, free: 7.176 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001964/0.3757, allocations: 182.4 kB / 1.371 GB, free: 6.988 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.324e-05/0.3757, allocations: 25.7 kB / 1.371 GB, free: 6.957 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.3758, allocations: 151.7 kB / 1.371 GB, free: 6.805 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.771e-05/0.3759, allocations: 23.8 kB / 1.371 GB, free: 6.781 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.894e-05/0.3759, allocations: 33.7 kB / 1.371 GB, free: 6.742 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001745/0.3761, allocations: 326.8 kB / 1.371 GB, free: 6.414 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.3762, allocations: 107.2 kB / 1.372 GB, free: 6.297 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001801/0.3764, allocations: 156.8 kB / 1.372 GB, free: 6.098 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002897/0.3767, allocations: 230.4 kB / 1.372 GB, free: 5.82 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.3767, allocations: 4 kB / 1.372 GB, free: 5.816 MB / 1.061 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004279/0.3771, allocations: 300.1 kB / 1.372 GB, free: 5.492 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.666e-05/0.3772, allocations: 67.34 kB / 1.372 GB, free: 5.414 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3772, allocations: 4.078 kB / 1.372 GB, free: 5.41 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.3772, allocations: 4 kB / 1.372 GB, free: 5.406 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.3774, allocations: 35.86 kB / 1.372 GB, free: 5.371 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.3774, allocations: 8.281 kB / 1.372 GB, free: 5.363 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001466/0.3775, allocations: 31.84 kB / 1.372 GB, free: 5.332 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.3775, allocations: 8 kB / 1.372 GB, free: 5.324 MB / 1.061 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.0001455/0.3777, allocations: 167.5 kB / 1.373 GB, free: 5.148 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.228e-05/0.3777, allocations: 23.88 kB / 1.373 GB, free: 5.125 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4e-05/0.3777, allocations: 17.39 kB / 1.373 GB, free: 5.102 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.3777, allocations: 0 / 1.373 GB, free: 5.102 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3778, allocations: 0 / 1.373 GB, free: 5.102 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3778, allocations: 0 / 1.373 GB, free: 5.102 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001636/0.3779, allocations: 145.3 kB / 1.373 GB, free: 4.93 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3779, allocations: 4 kB / 1.373 GB, free: 4.926 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.031e-05/0.378, allocations: 11.98 kB / 1.373 GB, free: 4.914 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.378, allocations: 0 / 1.373 GB, free: 4.914 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.378, allocations: 7.938 kB / 1.373 GB, free: 4.906 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.378, allocations: 7.938 kB / 1.373 GB, free: 4.898 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.378, allocations: 0 / 1.373 GB, free: 4.898 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004945/0.3785, allocations: 278.1 kB / 1.373 GB, free: 4.59 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.585e-05/0.3786, allocations: 19.88 kB / 1.373 GB, free: 4.57 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.971e-05/0.3786, allocations: 7.938 kB / 1.373 GB, free: 4.562 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.016e-05/0.3787, allocations: 12.05 kB / 1.373 GB, free: 4.551 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.042e-05/0.3787, allocations: 11.98 kB / 1.373 GB, free: 4.539 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-06/0.3787, allocations: 4 kB / 1.373 GB, free: 4.535 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001205/0.3789, allocations: 132.8 kB / 1.373 GB, free: 4.406 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3789, allocations: 0 / 1.373 GB, free: 4.406 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002582/0.3791, allocations: 31.94 kB / 1.373 GB, free: 4.375 MB / 1.061 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.0001253/0.3792, allocations: 107.2 kB / 1.373 GB, free: 4.262 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004267/0.3797, allocations: 296.2 kB / 1.374 GB, free: 3.93 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.3797, allocations: 4 kB / 1.374 GB, free: 3.926 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001433/0.3798, allocations: 117 kB / 1.374 GB, free: 3.793 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.3801, allocations: 27.97 kB / 1.374 GB, free: 3.766 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006812/0.3808, allocations: 353.9 kB / 1.374 GB, free: 3.383 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001117/0.3809, allocations: 106.5 kB / 1.374 GB, free: 3.254 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.05e-05/0.3809, allocations: 19.42 kB / 1.374 GB, free: 3.234 MB / 1.061 GB Notification: Performance of SimCode: time 5.91e-07/0.3809, allocations: 0 / 1.374 GB, free: 3.234 MB / 1.061 GB Notification: Performance of Templates: time 0.003782/0.3847, allocations: 1.775 MB / 1.376 GB, free: 1.469 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.805174856912345]