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.001263/0.001263, allocations: 110.1 kB / 19.73 MB, free: 2.242 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.001883/0.001883, allocations: 219.8 kB / 23.04 MB, free: 5.074 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.513/1.513, allocations: 230.6 MB / 256.8 MB, free: 7.984 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.207/3.207, allocations: 0.5003 GB / 0.8061 GB, free: 26.98 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.001995/0.001995, allocations: 63.94 kB / 1.171 GB, free: 19.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3282, allocations: 179 MB / 1.345 GB, free: 0.5039 MB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004012/0.3322, allocations: 2.389 MB / 1.348 GB, free: 14.1 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001496/0.3337, allocations: 0.8805 MB / 1.348 GB, free: 13.21 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.704e-05/0.3338, allocations: 7.938 kB / 1.348 GB, free: 13.21 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0006277/0.3345, allocations: 155.4 kB / 1.349 GB, free: 13.05 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001953/0.3346, allocations: 67.61 kB / 1.349 GB, free: 12.99 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001913/0.3348, allocations: 63.86 kB / 1.349 GB, free: 12.93 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002523/0.3351, allocations: 167.3 kB / 1.349 GB, free: 12.76 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002419/0.3353, allocations: 84.91 kB / 1.349 GB, free: 12.68 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001795/0.3355, allocations: 71.75 kB / 1.349 GB, free: 12.61 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001702/0.3357, allocations: 71.69 kB / 1.349 GB, free: 12.54 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.564e-05/0.3357, allocations: 12 kB / 1.349 GB, free: 12.53 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001307/0.3358, allocations: 59.88 kB / 1.349 GB, free: 12.47 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.665e-05/0.3359, allocations: 31.91 kB / 1.349 GB, free: 12.44 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 9.592e-05/0.336, allocations: 83.59 kB / 1.349 GB, free: 12.36 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002798/0.3363, allocations: 179.3 kB / 1.349 GB, free: 12.18 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.3363, allocations: 4 kB / 1.349 GB, free: 12.18 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.273e-06/0.3363, allocations: 0 / 1.349 GB, free: 12.18 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.3363, allocations: 0 / 1.349 GB, free: 12.18 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.00078/0.3371, allocations: 417.2 kB / 1.35 GB, free: 11.73 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.3371, allocations: 12.03 kB / 1.35 GB, free: 11.71 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.645e-05/0.3371, allocations: 384 / 1.35 GB, free: 11.71 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.035e-05/0.3372, allocations: 50.73 kB / 1.35 GB, free: 11.66 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002989/0.3375, allocations: 32.83 kB / 1.35 GB, free: 11.62 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002636/0.3377, allocations: 174.5 kB / 1.35 GB, free: 11.43 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.52e-05/0.3378, allocations: 63.41 kB / 1.35 GB, free: 11.36 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.856e-05/0.3378, allocations: 8 kB / 1.35 GB, free: 11.35 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003272/0.3382, allocations: 153.8 kB / 1.35 GB, free: 11.19 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.3382, allocations: 3.938 kB / 1.35 GB, free: 11.18 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.3382, allocations: 4 kB / 1.35 GB, free: 11.18 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.3382, allocations: 4 kB / 1.35 GB, free: 11.18 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002201/0.3384, allocations: 91.88 kB / 1.35 GB, free: 11.09 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009191/0.3394, allocations: 0.6043 MB / 1.351 GB, free: 10.43 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002506/0.3396, allocations: 58.75 kB / 1.351 GB, free: 10.36 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.826e-05/0.3397, allocations: 24.78 kB / 1.351 GB, free: 10.33 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.3397, allocations: 4 kB / 1.351 GB, free: 10.33 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002351/0.3399, allocations: 150.7 kB / 1.351 GB, free: 10.16 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.763e-06/0.3399, allocations: 0 / 1.351 GB, free: 10.16 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0004128/0.3404, allocations: 155.2 kB / 1.351 GB, free: 9.992 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.018e-05/0.3404, allocations: 136.5 kB / 1.352 GB, free: 9.828 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001977/0.3406, allocations: 182.7 kB / 1.352 GB, free: 9.637 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.3407, allocations: 25.7 kB / 1.352 GB, free: 9.605 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.3408, allocations: 144 kB / 1.352 GB, free: 9.457 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.521e-05/0.3408, allocations: 23.89 kB / 1.352 GB, free: 9.434 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.072e-05/0.3409, allocations: 41.66 kB / 1.352 GB, free: 9.387 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001523/0.341, allocations: 326.8 kB / 1.352 GB, free: 9.059 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/0.3411, allocations: 43.91 kB / 1.352 GB, free: 9.016 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001409/0.3413, allocations: 103.3 kB / 1.352 GB, free: 8.883 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002732/0.3415, allocations: 230.3 kB / 1.353 GB, free: 8.605 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3415, allocations: 0 / 1.353 GB, free: 8.605 MB / 1.045 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004157/0.342, allocations: 252.7 kB / 1.353 GB, free: 8.34 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 5.444e-05/0.342, allocations: 63.39 kB / 1.353 GB, free: 8.266 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.342, allocations: 0 / 1.353 GB, free: 8.266 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.342, allocations: 8 kB / 1.353 GB, free: 8.258 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.3422, allocations: 35.92 kB / 1.353 GB, free: 8.223 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.3422, allocations: 7.938 kB / 1.353 GB, free: 8.215 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.3423, allocations: 23.88 kB / 1.353 GB, free: 8.191 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.253e-05/0.3423, allocations: 12.33 kB / 1.353 GB, free: 8.18 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.0001591/0.3425, allocations: 175.3 kB / 1.353 GB, free: 7.992 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.632e-05/0.3425, allocations: 15.91 kB / 1.353 GB, free: 7.977 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.56e-05/0.3426, allocations: 13.41 kB / 1.353 GB, free: 7.957 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.3426, allocations: 0 / 1.353 GB, free: 7.957 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3426, allocations: 0 / 1.353 GB, free: 7.957 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.3426, allocations: 3.984 kB / 1.353 GB, free: 7.953 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001981/0.3428, allocations: 184.6 kB / 1.353 GB, free: 7.73 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.3428, allocations: 0 / 1.353 GB, free: 7.73 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.402e-05/0.3429, allocations: 19.98 kB / 1.353 GB, free: 7.711 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.3429, allocations: 0 / 1.353 GB, free: 7.711 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.3429, allocations: 4 kB / 1.353 GB, free: 7.707 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3429, allocations: 0 / 1.353 GB, free: 7.707 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3429, allocations: 0 / 1.353 GB, free: 7.707 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004251/0.3433, allocations: 218.6 kB / 1.354 GB, free: 7.469 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.844e-05/0.3433, allocations: 7.984 kB / 1.354 GB, free: 7.461 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.226e-05/0.3434, allocations: 12.05 kB / 1.354 GB, free: 7.449 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.228e-05/0.3434, allocations: 8 kB / 1.354 GB, free: 7.441 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.865e-05/0.3435, allocations: 11.97 kB / 1.354 GB, free: 7.43 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.3435, allocations: 4 kB / 1.354 GB, free: 7.426 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.000123/0.3436, allocations: 136.8 kB / 1.354 GB, free: 7.293 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3436, allocations: 0 / 1.354 GB, free: 7.293 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002636/0.3439, allocations: 43.83 kB / 1.354 GB, free: 7.25 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.0007849/0.3447, allocations: 0.751 MB / 1.355 GB, free: 6.465 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003742/0.3451, allocations: 214.6 kB / 1.355 GB, free: 6.23 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3451, allocations: 0.6875 kB / 1.355 GB, free: 6.23 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.3452, allocations: 87.33 kB / 1.355 GB, free: 6.133 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002454/0.3454, allocations: 33.23 kB / 1.355 GB, free: 6.102 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002462/0.3479, allocations: 1.984 MB / 1.357 GB, free: 3.965 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004243/0.3483, allocations: 0.7162 MB / 1.358 GB, free: 3.223 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 7.884e-05/0.3484, allocations: 12.64 kB / 1.358 GB, free: 3.207 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.674e-05/0.3485, allocations: 47.42 kB / 1.358 GB, free: 3.16 MB / 1.045 GB Notification: Performance of SimCode: time 6.21e-07/0.3485, allocations: 0 / 1.358 GB, free: 3.16 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02617/0.3746, allocations: 3.387 MB / 1.361 GB, free: 15.94 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.03, allocations: 8.859 kB / 1.361 GB, free: 15.93 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: 18.958472965983674]