Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.ChillerStage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0003993/0.0003993, allocations: 0 / 0, free: 0 / 0 " [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.0006475/0.0006475, allocations: 0 / 0, free: 0 / 0 " [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.4037/0.4037, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 179] 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 0.9739/0.9739, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 178] Using package Buildings with version 14.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: simulate(Buildings.DHC.Plants.Cooling.Controls.Validation.ChillerStage,startTime=0,stopTime=1200,tolerance=1e-06,numberOfIntervals=2500,outputFormat="mat",variableFilter="time|chiStaCon.on|chiStaCon.plr.y|chiStaCon.y.1.|chiStaCon.y.2.",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.ChillerStage",simflags="-alarm=800 -emit_protected -lv LOG_STATS") simulate(Buildings.DHC.Plants.Cooling.Controls.Validation.ChillerStage,startTime=0,stopTime=1200,tolerance=1e-06,numberOfIntervals=2500,outputFormat="mat",variableFilter="time|chiStaCon.on|chiStaCon.plr.y|chiStaCon.y.1.|chiStaCon.y.2.",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.ChillerStage",simflags="-alarm=800 -emit_protected -lv LOG_STATS") [Timeout 1100] "Notification: Performance of FrontEnd - loaded program: time 9.72e-07/9.72e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 3.138e-05/3.235e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.ChillerStage): time 0.008458/0.00849, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.006732/0.01522, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.0004569/0.01568, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.001187/0.01687, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.001112/0.01798, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.001801/0.01978, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.001599/0.02138, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.001317/0.0227, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.001387/0.02408, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.0007983/0.02488, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0002034/0.02508, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.000541/0.02562, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.0004216/0.02605, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0006347/0.02668, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.002568/0.02925, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.0001535/0.0294, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 2.274e-06/0.02941, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 1.511e-05/0.02942, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.004068/0.03349, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 9.625e-05/0.03358, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002069/0.03565, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.002078/0.03773, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001632/0.03789, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002829/0.03818, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.003598/0.04177, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 3.88e-05/0.04181, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001973/0.04201, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.623e-05/0.04205, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002816/0.04486, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006534/0.0514, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.002099/0.0535, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.001064/0.05456, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 4.908e-05/0.05461, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001447/0.05606, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=55): time 7.005e-05/0.05613, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=55): time 0.003746/0.05987, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 9.833e-05/0.05997, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001291/0.06126, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0002877/0.06155, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0003941/0.06194, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0003211/0.06226, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007641/0.06303, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0004123/0.06344, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.001129/0.06457, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.001345/0.06591, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.001959/0.06787, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.355e-05/0.06789, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=79) (initialization): time 0.003386/0.07127, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 3.916e-05/0.07131, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.07132, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 2.945e-05/0.07135, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006007/0.07195, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.754e-05/0.07198, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004881/0.07247, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001504/0.07262, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.chiStaCon.offToOne.enableFire,$PRE.chiStaCon.oneToTwo.enableFire,$PRE.chiStaCon.twoToOne.enableFire,$PRE.chiStaCon.oneToOff.enableFire,$PRE.on.combiTimeTable.nextTimeEvent,$whenCondition5,chiStaCon.stateGraphRoot.resume,chiStaCon.stateGraphRoot.suspend,on.combiTimeTable.nextTimeEventScaled,$PRE.on.combiTimeTable.nextTimeEventScaled,on.combiTimeTable.nextTimeEvent,chiStaCon.thrOneToTwo.y,$PRE.chiStaCon.thrOneToTwo.y,chiStaCon.oneToOff.t_start,$PRE.chiStaCon.oneToOff.t_start,chiStaCon.oneToOff.fire,chiStaCon.oneToOff.enableFire,chiStaCon.oneToOff.localCondition,chiStaCon.twoToOne.t_start,$PRE.chiStaCon.twoToOne.t_start,chiStaCon.twoToOne.fire,chiStaCon.twoToOne.enableFire,chiStaCon.twoToOne.localCondition,chiStaCon.oneToTwo.t_start,$PRE.chiStaCon.oneToTwo.t_start,chiStaCon.oneToTwo.fire,chiStaCon.oneToTwo.enableFire,chiStaCon.offToOne.t_start,$PRE.chiStaCon.offToOne.t_start,chiStaCon.offToOne.fire,chiStaCon.offToOne.enableFire,chiStaCon.twoOn.active,chiStaCon.twoOn.oldActive,$PRE.chiStaCon.twoOn.oldActive,chiStaCon.twoOn.newActive,$PRE.chiStaCon.twoOn.newActive,chiStaCon.twoOn.localActive,$PRE.chiStaCon.twoOn.localActive,chiStaCon.oneOn.active,chiStaCon.oneOn.oldActive,$PRE.chiStaCon.oneOn.oldActive,chiStaCon.oneOn.newActive,$PRE.chiStaCon.oneOn.newActive,chiStaCon.oneOn.outPort[2].available,chiStaCon.oneOn.inPort[2].occupied,chiStaCon.oneOn.localActive,$PRE.chiStaCon.oneOn.localActive,chiStaCon.off.oldActive,$PRE.chiStaCon.off.oldActive,chiStaCon.off.newActive,$PRE.chiStaCon.off.newActive,chiStaCon.off.localActive,$PRE.chiStaCon.off.localActive,chiStaCon.off.active,chiStaCon.y[1],chiStaCon.stateGraphRoot.activeSteps,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * 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.001069/0.07369, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003627/0.07405, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002987/0.07704, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.668e-05/0.07706, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.07707, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.397e-05/0.07708, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005748/0.08283, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.08284, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004127/0.08325, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 1.546e-05/0.08326, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001466/0.08341, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.217e-05/0.08342, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.08343, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002838/0.08626, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.0003867/0.08665, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002637/0.08691, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004589/0.08737, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007062/0.08808, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001271/0.08821, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.0008053/0.08901, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 1.908e-05/0.08903, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.001699/0.09073, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 38 (chiStaCon.twoToOne.enableFire,chiStaCon.oneToOff.enableFire,chiStaCon.offToOne.enableFire,chiStaCon.oneToTwo.enableFire,chiStaCon.twoOn.active,chiStaCon.oneOn.active,chiStaCon.off.active,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chiStaCon.stateGraphRoot.activeSteps,chiStaCon.y[1],chiStaCon.off.localActive,chiStaCon.off.newActive,chiStaCon.off.oldActive,chiStaCon.oneOn.localActive,chiStaCon.oneOn.inPort[2].occupied,chiStaCon.oneOn.outPort[2].available,chiStaCon.oneOn.newActive,chiStaCon.oneOn.oldActive,chiStaCon.twoOn.localActive,chiStaCon.twoOn.newActive,chiStaCon.twoOn.oldActive,chiStaCon.offToOne.fire,chiStaCon.offToOne.t_start,chiStaCon.oneToTwo.fire,chiStaCon.oneToTwo.t_start,chiStaCon.twoToOne.localCondition,chiStaCon.twoToOne.fire,chiStaCon.twoToOne.t_start,chiStaCon.oneToOff.localCondition,chiStaCon.oneToOff.fire,chiStaCon.oneToOff.t_start,chiStaCon.thrOneToTwo.y,on.combiTimeTable.nextTimeEvent,on.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (on.combiTimeTable.nextTimeEvent,chiStaCon.off.newActive,chiStaCon.oneOn.newActive,chiStaCon.twoOn.newActive,chiStaCon.thrOneToTwo.y,on.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.000722/0.09145, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.002528/0.09398, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.09398, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.00116/0.09514, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002267/0.09741, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004251/0.1017, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007736/0.1024, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.0005404/0.103, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001002/0.104, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.000374/0.1044, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.002584/0.1069, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 1100] diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.ChillerStage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Cooling_Controls_Validation_ChillerStage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.ChillerStage.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: 2.7345486670001264]