Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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.001834/0.001834, allocations: 114.5 kB / 18.94 MB, free: 2.934 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.002609/0.002609, allocations: 217 kB / 22.25 MB, free: 5.082 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.549/1.549, allocations: 230.6 MB / 256 MB, free: 8.027 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.511/3.511, allocations: 0.5096 GB / 0.8147 GB, free: 17.29 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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") [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.002183/0.002183, allocations: 72.28 kB / 1.184 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3551/0.3572, allocations: 181.4 MB / 1.361 GB, free: 216 kB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003577/0.3608, allocations: 1.729 MB / 1.363 GB, free: 14.46 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001115/0.3619, allocations: 0.5269 MB / 1.364 GB, free: 13.93 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.338e-05/0.362, allocations: 0 / 1.364 GB, free: 13.93 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.467e-05/0.3621, allocations: 11.86 kB / 1.364 GB, free: 13.92 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001044/0.3622, allocations: 15.81 kB / 1.364 GB, free: 13.9 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003116/0.3625, allocations: 51.88 kB / 1.364 GB, free: 13.85 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001945/0.3627, allocations: 83.7 kB / 1.364 GB, free: 13.77 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.3628, allocations: 20.17 kB / 1.364 GB, free: 13.75 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001834/0.363, allocations: 47.83 kB / 1.364 GB, free: 13.7 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.3631, allocations: 43.78 kB / 1.364 GB, free: 13.66 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.37e-05/0.3631, allocations: 4 kB / 1.364 GB, free: 13.65 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.645e-05/0.3632, allocations: 12 kB / 1.364 GB, free: 13.64 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.425e-05/0.3632, allocations: 15.92 kB / 1.364 GB, free: 13.62 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.888e-05/0.3633, allocations: 43.8 kB / 1.364 GB, free: 13.58 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001912/0.3635, allocations: 83.69 kB / 1.364 GB, free: 13.5 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.3635, allocations: 0 / 1.364 GB, free: 13.5 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3635, allocations: 0 / 1.364 GB, free: 13.5 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.3635, allocations: 0 / 1.364 GB, free: 13.5 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006127/0.3641, allocations: 325.9 kB / 1.364 GB, free: 13.15 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.3641, allocations: 8.031 kB / 1.364 GB, free: 13.14 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000261/0.3644, allocations: 32.8 kB / 1.364 GB, free: 13.11 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002848/0.3647, allocations: 138.3 kB / 1.365 GB, free: 12.95 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.3647, allocations: 8.312 kB / 1.365 GB, free: 12.95 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.3647, allocations: 4.375 kB / 1.365 GB, free: 12.94 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002404/0.3649, allocations: 95.69 kB / 1.365 GB, free: 12.84 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.365, allocations: 0 / 1.365 GB, free: 12.84 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.365, allocations: 0 / 1.365 GB, free: 12.84 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.365, allocations: 0 / 1.365 GB, free: 12.84 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001699/0.3651, allocations: 55.89 kB / 1.365 GB, free: 12.78 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005432/0.3657, allocations: 291.8 kB / 1.365 GB, free: 12.45 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000151/0.3658, allocations: 54.58 kB / 1.365 GB, free: 12.39 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.579e-05/0.3659, allocations: 28.94 kB / 1.365 GB, free: 12.36 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.026e-05/0.3659, allocations: 0 / 1.365 GB, free: 12.36 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.366, allocations: 34.56 kB / 1.365 GB, free: 12.32 MB / 1.061 GB Notification: Performance of pre-optimization done (n=4): time 7.41e-07/0.366, allocations: 0 / 1.365 GB, free: 12.32 MB / 1.061 GB Notification: Performance of matching and sorting (n=4): time 0.000368/0.3663, allocations: 105.6 kB / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.755e-05/0.3664, allocations: 77.11 kB / 1.365 GB, free: 12.11 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.3665, allocations: 143.7 kB / 1.365 GB, free: 11.96 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.653e-05/0.3666, allocations: 25.7 kB / 1.365 GB, free: 11.93 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.556e-05/0.3666, allocations: 104 kB / 1.366 GB, free: 11.83 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.453e-05/0.3667, allocations: 15.91 kB / 1.366 GB, free: 11.81 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.467e-05/0.3667, allocations: 17.72 kB / 1.366 GB, free: 11.79 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.3669, allocations: 322.8 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.576e-05/0.3669, allocations: 31.98 kB / 1.366 GB, free: 11.43 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.402e-05/0.367, allocations: 33.7 kB / 1.366 GB, free: 11.39 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/0.3672, allocations: 48.83 kB / 1.366 GB, free: 11.34 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3672, allocations: 0 / 1.366 GB, free: 11.34 MB / 1.061 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002166/0.3674, allocations: 93.64 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.3674, allocations: 4 kB / 1.366 GB, free: 11.24 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.3674, allocations: 3.938 kB / 1.366 GB, free: 11.24 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.3674, allocations: 0 / 1.366 GB, free: 11.24 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.841e-05/0.3675, allocations: 8 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.3675, allocations: 3.984 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.745e-05/0.3676, allocations: 11.94 kB / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.867e-06/0.3676, allocations: 3.984 kB / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (chiSwi.hysteresis.y,$PRE.chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.000102/0.3677, allocations: 121.8 kB / 1.366 GB, free: 11.08 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.97e-05/0.3677, allocations: 11.89 kB / 1.366 GB, free: 11.07 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.848e-05/0.3678, allocations: 16.28 kB / 1.366 GB, free: 11.05 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.3678, allocations: 0 / 1.366 GB, free: 11.05 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3678, allocations: 192 / 1.366 GB, free: 11.05 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.3678, allocations: 3.938 kB / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00022/0.368, allocations: 168.6 kB / 1.366 GB, free: 10.84 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.368, allocations: 0 / 1.366 GB, free: 10.84 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.564e-05/0.3681, allocations: 11.98 kB / 1.366 GB, free: 10.82 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3681, allocations: 4 kB / 1.366 GB, free: 10.82 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.3681, allocations: 4.188 kB / 1.366 GB, free: 10.82 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.3681, allocations: 4 kB / 1.366 GB, free: 10.81 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.3681, allocations: 4 kB / 1.366 GB, free: 10.81 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002552/0.3684, allocations: 175.4 kB / 1.367 GB, free: 10.62 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.533e-05/0.3684, allocations: 7.953 kB / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.392e-05/0.3684, allocations: 3.984 kB / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.3685, allocations: 12 kB / 1.367 GB, free: 10.6 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.229e-05/0.3686, allocations: 15.97 kB / 1.367 GB, free: 10.58 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.3686, allocations: 3.938 kB / 1.367 GB, free: 10.58 MB / 1.061 GB Notification: Performance of sorting global known variables: time 8.579e-05/0.3687, allocations: 104.8 kB / 1.367 GB, free: 10.48 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3687, allocations: 0 / 1.367 GB, free: 10.48 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002361/0.3689, allocations: 15.95 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0001319/0.369, allocations: 99.23 kB / 1.367 GB, free: 10.36 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002275/0.3693, allocations: 55.91 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3693, allocations: 0 / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 8.268e-05/0.3693, allocations: 27.98 kB / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002503/0.3696, allocations: 4 kB / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004499/0.37, allocations: 172.2 kB / 1.367 GB, free: 10.08 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.3704, allocations: 0.7002 MB / 1.368 GB, free: 9.352 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.463e-05/0.3704, allocations: 4 kB / 1.368 GB, free: 9.348 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.091e-05/0.3705, allocations: 7.438 kB / 1.368 GB, free: 9.34 MB / 1.061 GB Notification: Performance of SimCode: time 3.4e-07/0.3705, allocations: 7.938 kB / 1.368 GB, free: 9.332 MB / 1.061 GB Notification: Performance of Templates: time 0.00384/0.3743, allocations: 0.915 MB / 1.369 GB, free: 8.434 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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: 9.394893936812878]