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.001788/0.001788, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.002291/0.002291, allocations: 218.9 kB / 23.03 MB, free: 4.922 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.491/1.491, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.302/3.302, allocations: 0.5003 GB / 0.8062 GB, free: 28.32 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: "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="cs",version="2.0",platforms={"static"}) [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.002091/0.002091, allocations: 63.12 kB / 1.17 GB, free: 19.58 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.359/0.3611, allocations: 179 MB / 1.345 GB, free: 4 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.00455/0.3657, allocations: 2.305 MB / 1.348 GB, free: 13.68 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001715/0.3674, allocations: 0.8143 MB / 1.348 GB, free: 12.86 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001766/0.3676, allocations: 4 kB / 1.348 GB, free: 12.86 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.00072/0.3683, allocations: 155.4 kB / 1.348 GB, free: 12.7 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0002663/0.3686, allocations: 67.66 kB / 1.349 GB, free: 12.64 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002571/0.3688, allocations: 63.81 kB / 1.349 GB, free: 12.57 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003379/0.3691, allocations: 159.5 kB / 1.349 GB, free: 12.42 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003127/0.3695, allocations: 92.83 kB / 1.349 GB, free: 12.33 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002357/0.3697, allocations: 75.7 kB / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002117/0.3699, allocations: 75.67 kB / 1.349 GB, free: 12.18 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.3699, allocations: 12 kB / 1.349 GB, free: 12.17 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001464/0.3701, allocations: 51.89 kB / 1.349 GB, free: 12.12 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 7.856e-05/0.3702, allocations: 43.89 kB / 1.349 GB, free: 12.07 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 9.391e-05/0.3703, allocations: 55.73 kB / 1.349 GB, free: 12.02 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003247/0.3706, allocations: 175.3 kB / 1.349 GB, free: 11.85 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3706, allocations: 4 kB / 1.349 GB, free: 11.84 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3706, allocations: 3.938 kB / 1.349 GB, free: 11.84 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.344e-05/0.3706, allocations: 0 / 1.349 GB, free: 11.84 MB / 1.045 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.0008874/0.3715, allocations: 421.2 kB / 1.35 GB, free: 11.39 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.3715, allocations: 12.03 kB / 1.35 GB, free: 11.38 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.022e-05/0.3716, allocations: 8.359 kB / 1.35 GB, free: 11.37 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.533e-05/0.3716, allocations: 42.75 kB / 1.35 GB, free: 11.32 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003212/0.3719, allocations: 40.81 kB / 1.35 GB, free: 11.28 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003147/0.3722, allocations: 162.5 kB / 1.35 GB, free: 11.09 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.907e-05/0.3723, allocations: 63.41 kB / 1.35 GB, free: 11.02 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.763e-05/0.3724, allocations: 8 kB / 1.35 GB, free: 11.01 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003627/0.3727, allocations: 179.6 kB / 1.35 GB, free: 10.82 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.3727, allocations: 4 kB / 1.35 GB, free: 10.81 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.3727, allocations: 0 / 1.35 GB, free: 10.81 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.115e-05/0.3728, allocations: 7.938 kB / 1.35 GB, free: 10.8 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002611/0.373, allocations: 125.5 kB / 1.35 GB, free: 10.68 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001016/0.374, allocations: 0.577 MB / 1.351 GB, free: 10.04 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002839/0.3743, allocations: 88.38 kB / 1.351 GB, free: 9.941 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.3744, allocations: 58.55 kB / 1.351 GB, free: 9.875 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.414e-05/0.3744, allocations: 0 / 1.351 GB, free: 9.875 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002705/0.3747, allocations: 176.4 kB / 1.351 GB, free: 9.672 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 2.245e-06/0.3747, allocations: 4 kB / 1.351 GB, free: 9.668 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0004707/0.3752, allocations: 214.7 kB / 1.351 GB, free: 9.434 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.3753, allocations: 144.4 kB / 1.352 GB, free: 9.262 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002002/0.3755, allocations: 182.7 kB / 1.352 GB, free: 9.07 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/0.3755, allocations: 25.7 kB / 1.352 GB, free: 9.039 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.3756, allocations: 140 kB / 1.352 GB, free: 8.895 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.629e-05/0.3757, allocations: 19.89 kB / 1.352 GB, free: 8.875 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.967e-05/0.3757, allocations: 45.66 kB / 1.352 GB, free: 8.824 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001961/0.3759, allocations: 322.8 kB / 1.352 GB, free: 8.5 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.3761, allocations: 87.39 kB / 1.352 GB, free: 8.402 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001975/0.3763, allocations: 174.8 kB / 1.352 GB, free: 8.188 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003101/0.3766, allocations: 234.3 kB / 1.353 GB, free: 7.906 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3766, allocations: 3.938 kB / 1.353 GB, free: 7.902 MB / 1.045 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004694/0.377, allocations: 308 kB / 1.353 GB, free: 7.57 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.161e-05/0.3771, allocations: 63.39 kB / 1.353 GB, free: 7.496 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.3771, allocations: 4 kB / 1.353 GB, free: 7.492 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.3771, allocations: 4.312 kB / 1.353 GB, free: 7.488 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.3773, allocations: 27.98 kB / 1.353 GB, free: 7.461 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.283e-05/0.3773, allocations: 7.938 kB / 1.353 GB, free: 7.453 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.3774, allocations: 27.88 kB / 1.353 GB, free: 7.426 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.95e-05/0.3775, allocations: 8 kB / 1.353 GB, free: 7.418 MB / 1.045 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.0001663/0.3776, allocations: 173 kB / 1.353 GB, free: 7.234 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.992e-05/0.3777, allocations: 15.91 kB / 1.353 GB, free: 7.219 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.408e-05/0.3777, allocations: 17.39 kB / 1.353 GB, free: 7.195 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.3777, allocations: 0 / 1.353 GB, free: 7.195 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.3777, allocations: 11.94 kB / 1.353 GB, free: 7.184 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.3777, allocations: 3.938 kB / 1.353 GB, free: 7.18 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001885/0.3779, allocations: 168.7 kB / 1.354 GB, free: 6.973 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3779, allocations: 0 / 1.354 GB, free: 6.973 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.354e-05/0.378, allocations: 11.98 kB / 1.354 GB, free: 6.961 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.378, allocations: 4.047 kB / 1.354 GB, free: 6.957 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.378, allocations: 7.984 kB / 1.354 GB, free: 6.949 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.378, allocations: 0 / 1.354 GB, free: 6.949 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.378, allocations: 0 / 1.354 GB, free: 6.949 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005066/0.3785, allocations: 286 kB / 1.354 GB, free: 6.633 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.999e-05/0.3786, allocations: 7.984 kB / 1.354 GB, free: 6.625 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.364e-05/0.3786, allocations: 4 kB / 1.354 GB, free: 6.621 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.3787, allocations: 11.98 kB / 1.354 GB, free: 6.609 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.174e-05/0.3788, allocations: 11.98 kB / 1.354 GB, free: 6.598 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.3788, allocations: 4 kB / 1.354 GB, free: 6.594 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001336/0.3789, allocations: 136.8 kB / 1.354 GB, free: 6.461 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3789, allocations: 0 / 1.354 GB, free: 6.461 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002732/0.3792, allocations: 35.89 kB / 1.354 GB, free: 6.426 MB / 1.045 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.0008021/0.38, allocations: 0.8243 MB / 1.355 GB, free: 5.555 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004303/0.3804, allocations: 295.7 kB / 1.355 GB, free: 5.223 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3804, allocations: 0 / 1.355 GB, free: 5.223 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001505/0.3806, allocations: 117.1 kB / 1.355 GB, free: 5.09 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/0.3808, allocations: 32.36 kB / 1.355 GB, free: 5.059 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002812/0.3837, allocations: 2.238 MB / 1.357 GB, free: 2.613 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001047/0.3838, allocations: 102.7 kB / 1.358 GB, free: 2.492 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 8.955e-05/0.3838, allocations: 16.73 kB / 1.358 GB, free: 2.477 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.564e-05/0.3839, allocations: 47.36 kB / 1.358 GB, free: 2.43 MB / 1.045 GB Notification: Performance of SimCode: time 6.81e-07/0.3839, allocations: 3.938 kB / 1.358 GB, free: 2.426 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02794/0.4119, allocations: 3.445 MB / 1.361 GB, free: 15.16 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.05, allocations: 7.516 kB / 1.361 GB, free: 15.15 MB / 1.061 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) [Timeout 840.0] 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: 19.032137581030838]