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.001674/0.001674, allocations: 114.7 kB / 17.16 MB, free: 5.895 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.002084/0.002084, allocations: 210.3 kB / 20.13 MB, free: 2.949 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.523/1.523, allocations: 230.6 MB / 253.5 MB, free: 15.11 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 2.921/2.921, allocations: 0.5003 GB / 0.8026 GB, free: 6.695 MB / 0.6387 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.00194/0.00194, allocations: 63.91 kB / 1.165 GB, free: 0.5781 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9544/0.9563, allocations: 178.9 MB / 1.34 GB, free: 16.32 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003329/0.9597, allocations: 2.361 MB / 1.342 GB, free: 14.7 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001218/0.9609, allocations: 0.8595 MB / 1.343 GB, free: 14.11 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.905e-05/0.961, allocations: 6.75 kB / 1.343 GB, free: 14.1 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0005436/0.9615, allocations: 148.6 kB / 1.343 GB, free: 14.02 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001582/0.9617, allocations: 65.05 kB / 1.343 GB, free: 13.98 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001636/0.9618, allocations: 64.81 kB / 1.344 GB, free: 13.94 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002191/0.962, allocations: 165.3 kB / 1.344 GB, free: 13.86 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002151/0.9623, allocations: 76.09 kB / 1.344 GB, free: 13.83 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001489/0.9624, allocations: 74.53 kB / 1.344 GB, free: 13.79 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001421/0.9626, allocations: 79.08 kB / 1.344 GB, free: 13.75 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.465e-05/0.9626, allocations: 12.28 kB / 1.344 GB, free: 13.75 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.9627, allocations: 58.05 kB / 1.344 GB, free: 13.74 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.552e-05/0.9627, allocations: 34.64 kB / 1.344 GB, free: 13.72 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.805e-05/0.9628, allocations: 68.7 kB / 1.344 GB, free: 13.68 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002533/0.9631, allocations: 181.5 kB / 1.344 GB, free: 13.61 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.9631, allocations: 0 / 1.344 GB, free: 13.61 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.092e-06/0.9631, allocations: 3.938 kB / 1.344 GB, free: 13.6 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.9631, allocations: 0 / 1.344 GB, free: 13.6 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.0006268/0.9637, allocations: 0.4901 MB / 1.345 GB, free: 13.12 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.9637, allocations: 9.625 kB / 1.345 GB, free: 13.12 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.41e-05/0.9638, allocations: 7.875 kB / 1.345 GB, free: 13.11 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.184e-05/0.9638, allocations: 45.27 kB / 1.345 GB, free: 13.07 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002981/0.9641, allocations: 38.14 kB / 1.345 GB, free: 13.05 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002116/0.9643, allocations: 223.3 kB / 1.345 GB, free: 12.83 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.658e-05/0.9644, allocations: 35.81 kB / 1.345 GB, free: 12.79 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.765e-05/0.9644, allocations: 12.25 kB / 1.345 GB, free: 12.79 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002705/0.9647, allocations: 142.4 kB / 1.345 GB, free: 12.7 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.9647, allocations: 4 kB / 1.345 GB, free: 12.7 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.9647, allocations: 2.75 kB / 1.345 GB, free: 12.7 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/0.9647, allocations: 8.906 kB / 1.345 GB, free: 12.7 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001957/0.9649, allocations: 90.98 kB / 1.345 GB, free: 12.66 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007226/0.9656, allocations: 0.6376 MB / 1.346 GB, free: 12.11 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002235/0.9658, allocations: 58.23 kB / 1.346 GB, free: 12.07 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.371e-05/0.9659, allocations: 28.88 kB / 1.346 GB, free: 12.05 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.132e-05/0.9659, allocations: 0 / 1.346 GB, free: 12.05 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001892/0.9661, allocations: 150.1 kB / 1.346 GB, free: 11.93 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.9661, allocations: 0 / 1.346 GB, free: 11.93 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0003675/0.9665, allocations: 153.5 kB / 1.346 GB, free: 11.84 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.9665, allocations: 140.1 kB / 1.346 GB, free: 11.67 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.9667, allocations: 190.2 kB / 1.347 GB, free: 11.54 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.9667, allocations: 28.55 kB / 1.347 GB, free: 11.5 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.081e-05/0.9668, allocations: 138.2 kB / 1.347 GB, free: 11.38 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.312e-05/0.9668, allocations: 26.98 kB / 1.347 GB, free: 11.36 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.747e-05/0.9668, allocations: 45.77 kB / 1.347 GB, free: 11.32 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.797e-05/0.9669, allocations: 323.3 kB / 1.347 GB, free: 11 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.235e-05/0.967, allocations: 38.17 kB / 1.347 GB, free: 10.99 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.9671, allocations: 114.2 kB / 1.347 GB, free: 10.88 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002014/0.9673, allocations: 232.8 kB / 1.348 GB, free: 10.66 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.9673, allocations: 0.9375 kB / 1.348 GB, free: 10.66 MB / 1.061 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003265/0.9676, allocations: 252 kB / 1.348 GB, free: 10.5 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.258e-05/0.9677, allocations: 65.2 kB / 1.348 GB, free: 10.43 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.9677, allocations: 3.516 kB / 1.348 GB, free: 10.43 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.9677, allocations: 2.781 kB / 1.348 GB, free: 10.43 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.9678, allocations: 27.22 kB / 1.348 GB, free: 10.43 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.9678, allocations: 8.609 kB / 1.348 GB, free: 10.43 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.968, allocations: 21.3 kB / 1.348 GB, free: 10.42 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.968, allocations: 13.31 kB / 1.348 GB, free: 10.41 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 8.89e-05/0.9681, allocations: 164.6 kB / 1.348 GB, free: 10.25 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.192e-05/0.9681, allocations: 16.06 kB / 1.348 GB, free: 10.25 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.74e-05/0.9681, allocations: 19.25 kB / 1.348 GB, free: 10.23 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.9681, allocations: 0 / 1.348 GB, free: 10.23 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.9681, allocations: 1.953 kB / 1.348 GB, free: 10.23 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.9681, allocations: 0 / 1.348 GB, free: 10.23 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001362/0.9683, allocations: 222 kB / 1.348 GB, free: 10.02 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.9683, allocations: 0 / 1.348 GB, free: 10.02 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.899e-05/0.9683, allocations: 15.08 kB / 1.348 GB, free: 10.01 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.9683, allocations: 1.375 kB / 1.348 GB, free: 10.01 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.9684, allocations: 1.438 kB / 1.348 GB, free: 10.01 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.9684, allocations: 2.094 kB / 1.348 GB, free: 10.01 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.9684, allocations: 0 / 1.348 GB, free: 10.01 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003424/0.9687, allocations: 219.8 kB / 1.349 GB, free: 9.863 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.052e-05/0.9687, allocations: 85.03 kB / 1.349 GB, free: 9.766 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.817e-05/0.9688, allocations: 8.359 kB / 1.349 GB, free: 9.762 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.368e-05/0.9689, allocations: 9.203 kB / 1.349 GB, free: 9.762 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.554e-05/0.9689, allocations: 10.73 kB / 1.349 GB, free: 9.758 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.9689, allocations: 7.281 kB / 1.349 GB, free: 9.754 MB / 1.061 GB Notification: Performance of sorting global known variables: time 8.519e-05/0.969, allocations: 134.7 kB / 1.349 GB, free: 9.66 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/0.969, allocations: 0 / 1.349 GB, free: 9.66 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002412/0.9692, allocations: 39.8 kB / 1.349 GB, free: 9.648 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.0004717/0.9697, allocations: 0.7569 MB / 1.35 GB, free: 8.969 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002738/0.97, allocations: 210.2 kB / 1.35 GB, free: 8.809 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.97, allocations: 4.625 kB / 1.35 GB, free: 8.805 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.9701, allocations: 90.75 kB / 1.35 GB, free: 8.73 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002288/0.9703, allocations: 26.7 kB / 1.35 GB, free: 8.715 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0022/0.9725, allocations: 1.973 MB / 1.352 GB, free: 7.113 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002164/0.9727, allocations: 0.7157 MB / 1.352 GB, free: 6.414 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.641e-05/0.9728, allocations: 20.61 kB / 1.352 GB, free: 6.406 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.457e-05/0.9729, allocations: 44.88 kB / 1.353 GB, free: 6.371 MB / 1.061 GB Notification: Performance of SimCode: time 4.71e-07/0.9729, allocations: 1.281 kB / 1.353 GB, free: 6.371 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02176/0.9947, allocations: 3.212 MB / 1.356 GB, free: 5.844 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.461/9.455, allocations: 14.84 kB / 1.356 GB, free: 5.832 MB / 1.061 GB " [Timeout remaining time 290] (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: 15.980019620037638]