Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0008535/0.0008535, allocations: 76.55 kB / 19.93 MB, free: 4.617 MB / 18.57 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.000798/0.000798, allocations: 177.9 kB / 23.22 MB, free: 1.332 MB / 18.57 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 0.8724/0.8724, allocations: 177.1 MB / 203.5 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.603/1.603, allocations: 359 MB / 0.6044 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 0.9517 GB, free: 3.078 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.795e-05/3.009e-05, allocations: 5.094 kB / 0.9517 GB, free: 3.074 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003057/0.003087, allocations: 2.297 MB / 0.9539 GB, free: 0.7578 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001096/0.004183, allocations: 0.8258 MB / 0.9547 GB, free: 15.93 MB / 0.9167 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.00429, allocations: 0 / 0.9547 GB, free: 15.93 MB / 0.9167 GB Notification: Performance of NFTyping.typeComponents: time 0.0005631/0.004853, allocations: 147.3 kB / 0.9549 GB, free: 15.78 MB / 0.9167 GB Notification: Performance of NFTyping.typeBindings: time 0.0001645/0.005018, allocations: 67.53 kB / 0.9549 GB, free: 15.71 MB / 0.9167 GB Notification: Performance of NFTyping.typeClassSections: time 0.000149/0.005167, allocations: 63.8 kB / 0.955 GB, free: 15.65 MB / 0.9167 GB Notification: Performance of NFFlatten.flatten: time 0.0002286/0.005395, allocations: 167.4 kB / 0.9551 GB, free: 15.49 MB / 0.9167 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002349/0.00563, allocations: 83.73 kB / 0.9552 GB, free: 15.41 MB / 0.9167 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001913/0.005822, allocations: 99.72 kB / 0.9553 GB, free: 15.31 MB / 0.9167 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/0.005983, allocations: 59.84 kB / 0.9554 GB, free: 15.25 MB / 0.9167 GB Notification: Performance of NFPackage.collectConstants: time 2.516e-05/0.006008, allocations: 12 kB / 0.9554 GB, free: 15.24 MB / 0.9167 GB Notification: Performance of NFFlatten.collectFunctions: time 9.053e-05/0.006098, allocations: 55.81 kB / 0.9554 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of NFScalarize.scalarize: time 5.72e-05/0.006156, allocations: 35.86 kB / 0.9555 GB, free: 15.15 MB / 0.9167 GB Notification: Performance of NFVerifyModel.verify: time 6.401e-05/0.00622, allocations: 47.89 kB / 0.9555 GB, free: 15.1 MB / 0.9167 GB Notification: Performance of NFConvertDAE.convert: time 0.0002281/0.006448, allocations: 183.4 kB / 0.9557 GB, free: 14.92 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.006451, allocations: 4 kB / 0.9557 GB, free: 14.92 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.663e-06/0.006452, allocations: 7.938 kB / 0.9557 GB, free: 14.91 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.006458, allocations: 0 / 0.9557 GB, free: 14.91 MB / 0.9167 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.0006108/0.007069, allocations: 421.2 kB / 0.9561 GB, free: 14.46 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.007111, allocations: 8.031 kB / 0.9561 GB, free: 14.45 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002044/0.007315, allocations: 36.81 kB / 0.9562 GB, free: 14.41 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002013/0.007516, allocations: 162.1 kB / 0.9563 GB, free: 14.23 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001595/0.007676, allocations: 60.16 kB / 0.9564 GB, free: 14.16 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.752e-05/0.007703, allocations: 12.31 kB / 0.9564 GB, free: 14.15 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002406/0.007944, allocations: 188.3 kB / 0.9566 GB, free: 13.95 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.007952, allocations: 0 / 0.9566 GB, free: 13.95 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.522e-05/0.007967, allocations: 0 / 0.9566 GB, free: 13.95 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.097e-05/0.007988, allocations: 4 kB / 0.9566 GB, free: 13.94 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001481/0.008137, allocations: 121.6 kB / 0.9567 GB, free: 13.82 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005606/0.008697, allocations: 0.5543 MB / 0.9572 GB, free: 13.22 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001997/0.008897, allocations: 80.27 kB / 0.9573 GB, free: 13.12 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.798e-05/0.008955, allocations: 58.61 kB / 0.9574 GB, free: 13.06 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.008975, allocations: 7.984 kB / 0.9574 GB, free: 13.05 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001586/0.009134, allocations: 180.3 kB / 0.9575 GB, free: 12.84 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=7): time 1.522e-06/0.009135, allocations: 0 / 0.9575 GB, free: 12.84 MB / 0.9167 GB Notification: Performance of matching and sorting (n=7): time 0.0002853/0.00942, allocations: 222.9 kB / 0.9577 GB, free: 12.6 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.425e-05/0.009485, allocations: 136.5 kB / 0.9579 GB, free: 12.44 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.009614, allocations: 187.7 kB / 0.9581 GB, free: 12.25 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.328e-05/0.009627, allocations: 25.7 kB / 0.9581 GB, free: 12.21 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 7.247e-05/0.0097, allocations: 143.7 kB / 0.9582 GB, free: 12.07 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.948e-05/0.009719, allocations: 27.8 kB / 0.9582 GB, free: 12.04 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.915e-05/0.009768, allocations: 37.7 kB / 0.9583 GB, free: 12 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.009878, allocations: 326.8 kB / 0.9586 GB, free: 11.67 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.47e-05/0.009962, allocations: 95.31 kB / 0.9587 GB, free: 11.57 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001054/0.01007, allocations: 166.7 kB / 0.9588 GB, free: 11.36 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001667/0.01023, allocations: 230.4 kB / 0.9591 GB, free: 11.08 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.01024, allocations: 0 / 0.9591 GB, free: 11.08 MB / 0.9167 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002496/0.01049, allocations: 312.2 kB / 0.9594 GB, free: 10.75 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 4.661e-05/0.01053, allocations: 63.41 kB / 0.9594 GB, free: 10.67 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.01054, allocations: 4 kB / 0.9594 GB, free: 10.67 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.01056, allocations: 4 kB / 0.9594 GB, free: 10.66 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.964e-05/0.01064, allocations: 31.86 kB / 0.9595 GB, free: 10.63 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.799e-06/0.01065, allocations: 7.984 kB / 0.9595 GB, free: 10.62 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.213e-05/0.01072, allocations: 23.89 kB / 0.9595 GB, free: 10.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.01073, allocations: 8 kB / 0.9595 GB, free: 10.59 MB / 0.9167 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.0001081/0.01084, allocations: 168.7 kB / 0.9597 GB, free: 10.41 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.528e-05/0.01086, allocations: 15.91 kB / 0.9597 GB, free: 10.4 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.763e-05/0.01088, allocations: 13.45 kB / 0.9597 GB, free: 10.38 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.01089, allocations: 4 kB / 0.9597 GB, free: 10.38 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.01089, allocations: 3.938 kB / 0.9597 GB, free: 10.38 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.01089, allocations: 0 / 0.9597 GB, free: 10.38 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.857e-05/0.01099, allocations: 145.3 kB / 0.9598 GB, free: 10.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.01099, allocations: 0 / 0.9598 GB, free: 10.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.334e-05/0.01104, allocations: 15.98 kB / 0.9598 GB, free: 10.19 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.01104, allocations: 0 / 0.9598 GB, free: 10.19 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.01105, allocations: 8 kB / 0.9599 GB, free: 10.18 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.01105, allocations: 7.875 kB / 0.9599 GB, free: 10.17 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01105, allocations: 0 / 0.9599 GB, free: 10.17 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002916/0.01134, allocations: 286.4 kB / 0.9601 GB, free: 9.855 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 1.994e-05/0.01136, allocations: 19.91 kB / 0.9602 GB, free: 9.836 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.01138, allocations: 4 kB / 0.9602 GB, free: 9.832 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.385e-05/0.01143, allocations: 15.98 kB / 0.9602 GB, free: 9.816 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.48e-05/0.01149, allocations: 11.92 kB / 0.9602 GB, free: 9.805 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.0115, allocations: 8 kB / 0.9602 GB, free: 9.797 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 7.382e-05/0.01157, allocations: 131.3 kB / 0.9603 GB, free: 9.668 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.01157, allocations: 0 / 0.9603 GB, free: 9.668 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001623/0.01174, allocations: 32 kB / 0.9603 GB, free: 9.637 MB / 0.9167 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 9.072e-05/0.01183, allocations: 99.19 kB / 0.9604 GB, free: 9.531 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.000245/0.01207, allocations: 303.7 kB / 0.9607 GB, free: 9.191 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.01207, allocations: 0 / 0.9607 GB, free: 9.191 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 7.552e-05/0.01215, allocations: 117.7 kB / 0.9608 GB, free: 9.059 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001729/0.01232, allocations: 30.58 kB / 0.9609 GB, free: 9.031 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004643/0.01279, allocations: 337.4 kB / 0.9612 GB, free: 8.66 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.94e-05/0.01286, allocations: 94.27 kB / 0.9613 GB, free: 8.547 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.795e-05/0.01289, allocations: 20.5 kB / 0.9613 GB, free: 8.527 MB / 0.9167 GB Notification: Performance of SimCode: time 8.22e-07/0.01289, allocations: 4 kB / 0.9613 GB, free: 8.523 MB / 0.9167 GB Notification: Performance of Templates: time 0.002636/0.01553, allocations: 1.777 MB / 0.963 GB, free: 6.75 MB / 0.9167 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 6.494929284788668]