Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001632/0.001632, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.002096/0.002096, allocations: 210.8 kB / 22.99 MB, free: 4.984 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.494/1.494, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.343/3.343, allocations: 0.49 GB / 0.7959 GB, free: 35.53 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_12_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_12_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.002024/0.002024, allocations: 65.56 kB / 1.155 GB, free: 25.25 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3975/0.3995, allocations: 176.1 MB / 1.327 GB, free: 1.047 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.00375/0.4033, allocations: 1.69 MB / 1.329 GB, free: 15.35 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00106/0.4043, allocations: 498.8 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.217e-05/0.4044, allocations: 3.938 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.569e-05/0.4045, allocations: 11.86 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.971e-05/0.4046, allocations: 15.86 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002868/0.4049, allocations: 43.89 kB / 1.329 GB, free: 14.78 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001717/0.405, allocations: 87.7 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.4052, allocations: 28.14 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001597/0.4053, allocations: 39.86 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.58e-05/0.4054, allocations: 31.84 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.459e-05/0.4054, allocations: 19.92 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 5.36e-05/0.4055, allocations: 11.94 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.711e-05/0.4055, allocations: 19.98 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.816e-05/0.4056, allocations: 35.73 kB / 1.33 GB, free: 14.51 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001934/0.4058, allocations: 87.69 kB / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.4058, allocations: 0 / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.254e-06/0.4058, allocations: 0 / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.692e-06/0.4058, allocations: 0 / 1.33 GB, free: 14.42 MB / 1.029 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.0006501/0.4064, allocations: 317.9 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.4065, allocations: 15.97 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002512/0.4067, allocations: 32.86 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003048/0.407, allocations: 139.9 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.407, allocations: 4.375 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.4071, allocations: 8.375 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002698/0.4073, allocations: 121.3 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.4073, allocations: 0 / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.4074, allocations: 0 / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.4074, allocations: 8 kB / 1.33 GB, free: 13.72 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001663/0.4075, allocations: 43.97 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004704/0.408, allocations: 260.4 kB / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001548/0.4082, allocations: 46.56 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.571e-05/0.4082, allocations: 28.94 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.4083, allocations: 8.016 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.281e-05/0.4083, allocations: 42.55 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.4083, allocations: 0 / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of matching and sorting (n=4): time 0.0003689/0.4087, allocations: 97.61 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.834e-05/0.4087, allocations: 77.11 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001273/0.4089, allocations: 135.9 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.4089, allocations: 25.7 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.639e-05/0.409, allocations: 104 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.471e-05/0.409, allocations: 15.89 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.446e-05/0.409, allocations: 21.72 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001454/0.4092, allocations: 326.8 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.36e-05/0.4093, allocations: 23.98 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001132/0.4094, allocations: 71.28 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000142/0.4095, allocations: 44.83 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4095, allocations: 0 / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002064/0.4097, allocations: 85.62 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.4097, allocations: 8.031 kB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.4097, allocations: 4 kB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.4098, allocations: 0 / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.4099, allocations: 7.984 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.4099, allocations: 7.938 kB / 1.332 GB, free: 12.13 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.945e-05/0.41, allocations: 7.984 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.41, allocations: 4 kB / 1.332 GB, free: 12.12 MB / 1.029 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.0001208/0.4101, allocations: 122.4 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.239e-05/0.4101, allocations: 7.953 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.886e-05/0.4102, allocations: 20.33 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.4102, allocations: 4 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.4102, allocations: 0 / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.4102, allocations: 0 / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001937/0.4104, allocations: 133.2 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.4104, allocations: 0 / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.76e-05/0.4105, allocations: 11.98 kB / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.4105, allocations: 0 / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-06/0.4105, allocations: 0 / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.4105, allocations: 0 / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.4105, allocations: 0 / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002832/0.4108, allocations: 191.3 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.564e-05/0.4108, allocations: 3.953 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.659e-05/0.4108, allocations: 8 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.4109, allocations: 7.984 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.746e-05/0.411, allocations: 7.984 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.411, allocations: 3.984 kB / 1.332 GB, free: 11.54 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.913e-05/0.411, allocations: 103.3 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.411, allocations: 0 / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002312/0.4113, allocations: 20 kB / 1.332 GB, free: 11.42 MB / 1.029 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.0001345/0.4114, allocations: 96.66 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002227/0.4116, allocations: 59.89 kB / 1.332 GB, free: 11.26 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4116, allocations: 0 / 1.332 GB, free: 11.26 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.978e-05/0.4117, allocations: 27.92 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002562/0.412, allocations: 4 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004602/0.4124, allocations: 186.9 kB / 1.333 GB, free: 11.03 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.76e-05/0.4125, allocations: 75.89 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.897e-05/0.4126, allocations: 15.91 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.278e-05/0.4126, allocations: 7.438 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of SimCode: time 3.4e-07/0.4126, allocations: 0 / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of Templates: time 0.003833/0.4165, allocations: 1.008 MB / 1.334 GB, free: 9.914 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.327657052999712]