Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.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.0009864/0.0009864, allocations: 81.92 kB / 19.87 MB, free: 4.621 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.0009981/0.0009981, allocations: 173.7 kB / 23.28 MB, free: 1.223 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.9564/0.9564, allocations: 177.1 MB / 203.7 MB, free: 5.512 MB / 186.7 MB " [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 2.374/2.374, allocations: 438.1 MB / 0.682 GB, free: 14.16 MB / 0.6511 GB " [Timeout remaining time 177] 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: translateModel(Buildings.Examples.ChillerPlant.DataCenter.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.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.DataCenter.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.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 0.8898 GB, free: 9.77 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.81e-05/1.985e-05, allocations: 2.312 kB / 0.8898 GB, free: 9.766 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002182/0.002201, allocations: 1.744 MB / 0.8915 GB, free: 8.012 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0007575/0.002959, allocations: 0.5027 MB / 0.8919 GB, free: 7.504 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.368e-05/0.003023, allocations: 0 / 0.8919 GB, free: 7.504 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 3.183e-05/0.003054, allocations: 15.86 kB / 0.892 GB, free: 7.488 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 8.522e-05/0.00314, allocations: 15.8 kB / 0.892 GB, free: 7.473 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002191/0.003359, allocations: 47.88 kB / 0.892 GB, free: 7.426 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.000118/0.003477, allocations: 91.64 kB / 0.8921 GB, free: 7.336 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 8.828e-05/0.003565, allocations: 20.17 kB / 0.8921 GB, free: 7.312 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000149/0.003714, allocations: 59.81 kB / 0.8922 GB, free: 7.254 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 6.244e-05/0.003776, allocations: 31.91 kB / 0.8922 GB, free: 7.223 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.866e-05/0.003795, allocations: 8 kB / 0.8922 GB, free: 7.215 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 4.605e-05/0.003841, allocations: 8 kB / 0.8922 GB, free: 7.207 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 2.028e-05/0.003861, allocations: 23.91 kB / 0.8923 GB, free: 7.184 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 2.357e-05/0.003885, allocations: 23.92 kB / 0.8923 GB, free: 7.16 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.000118/0.004003, allocations: 59.75 kB / 0.8923 GB, free: 7.102 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.004005, allocations: 0 / 0.8923 GB, free: 7.102 MB / 0.8542 GB Notification: Performance of FrontEnd: time 6.82e-07/0.004006, allocations: 0 / 0.8923 GB, free: 7.102 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.127e-06/0.00401, allocations: 4 kB / 0.8923 GB, free: 7.098 MB / 0.8542 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.000449/0.004459, allocations: 428.2 kB / 0.8927 GB, free: 6.645 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.004498, allocations: 8.625 kB / 0.8928 GB, free: 6.637 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.004625, allocations: 24.88 kB / 0.8928 GB, free: 6.613 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000135/0.00476, allocations: 148.4 kB / 0.8929 GB, free: 6.441 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.044e-05/0.004771, allocations: 8.359 kB / 0.8929 GB, free: 6.434 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-06/0.00478, allocations: 4.375 kB / 0.8929 GB, free: 6.43 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001458/0.004926, allocations: 120 kB / 0.893 GB, free: 6.289 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.004934, allocations: 192 / 0.893 GB, free: 6.289 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.004945, allocations: 4.375 kB / 0.8931 GB, free: 6.285 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.004951, allocations: 3.938 kB / 0.8931 GB, free: 6.281 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.187e-05/0.004983, allocations: 15.92 kB / 0.8931 GB, free: 6.266 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002942/0.005277, allocations: 280.3 kB / 0.8933 GB, free: 5.965 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 6.921e-05/0.005346, allocations: 43.06 kB / 0.8934 GB, free: 5.91 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.196e-05/0.005368, allocations: 19.62 kB / 0.8934 GB, free: 5.887 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.005384, allocations: 0 / 0.8934 GB, free: 5.887 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.005408, allocations: 45.39 kB / 0.8934 GB, free: 5.832 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=4): time 1.232e-06/0.005409, allocations: 0 / 0.8934 GB, free: 5.832 MB / 0.8542 GB Notification: Performance of matching and sorting (n=4): time 0.0001342/0.005543, allocations: 53.73 kB / 0.8935 GB, free: 5.773 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.00558, allocations: 85.03 kB / 0.8936 GB, free: 5.672 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.076e-05/0.005671, allocations: 191.7 kB / 0.8938 GB, free: 5.469 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/0.005687, allocations: 25.7 kB / 0.8938 GB, free: 5.438 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 5.573e-05/0.005743, allocations: 150.8 kB / 0.8939 GB, free: 5.285 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.709e-05/0.00576, allocations: 11.89 kB / 0.8939 GB, free: 5.273 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.521e-05/0.005795, allocations: 23.38 kB / 0.894 GB, free: 5.242 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001146/0.00591, allocations: 0.4923 MB / 0.8944 GB, free: 4.738 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.4e-05/0.005924, allocations: 4 kB / 0.8944 GB, free: 4.734 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.567e-05/0.00596, allocations: 57.05 kB / 0.8945 GB, free: 4.664 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.385e-05/0.005994, allocations: 19.69 kB / 0.8945 GB, free: 4.641 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.005995, allocations: 0 / 0.8945 GB, free: 4.641 MB / 0.8542 GB Notification: Performance of matching and sorting (n=5) (initialization): time 6.79e-05/0.006063, allocations: 61.52 kB / 0.8946 GB, free: 4.574 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.006075, allocations: 8 kB / 0.8946 GB, free: 4.566 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.006079, allocations: 0 / 0.8946 GB, free: 4.566 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.939e-06/0.006089, allocations: 0 / 0.8946 GB, free: 4.566 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.139e-05/0.00614, allocations: 11.98 kB / 0.8946 GB, free: 4.555 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.605e-06/0.006143, allocations: 0 / 0.8946 GB, free: 4.555 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.899e-05/0.006172, allocations: 8.031 kB / 0.8946 GB, free: 4.547 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-06/0.006179, allocations: 3.984 kB / 0.8946 GB, free: 4.543 MB / 0.8542 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 6.891e-05/0.006248, allocations: 156.6 kB / 0.8948 GB, free: 4.379 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.862e-05/0.006266, allocations: 15.89 kB / 0.8948 GB, free: 4.363 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.451e-05/0.006291, allocations: 12.34 kB / 0.8948 GB, free: 4.344 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.006292, allocations: 0 / 0.8948 GB, free: 4.344 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-06/0.006294, allocations: 0 / 0.8948 GB, free: 4.344 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.006297, allocations: 0 / 0.8948 GB, free: 4.344 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001076/0.006404, allocations: 121.2 kB / 0.8949 GB, free: 4.199 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.006405, allocations: 0 / 0.8949 GB, free: 4.199 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.387e-05/0.006429, allocations: 4.188 kB / 0.8949 GB, free: 4.195 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.00643, allocations: 4 kB / 0.8949 GB, free: 4.191 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.006442, allocations: 11.94 kB / 0.8949 GB, free: 4.18 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-07/0.006442, allocations: 0 / 0.8949 GB, free: 4.18 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.006444, allocations: 7.922 kB / 0.8949 GB, free: 4.172 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001231/0.006568, allocations: 196.1 kB / 0.8951 GB, free: 3.961 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.519e-05/0.006583, allocations: 19.97 kB / 0.8951 GB, free: 3.941 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.697e-05/0.0066, allocations: 3.938 kB / 0.8951 GB, free: 3.938 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.054e-05/0.00664, allocations: 7.984 kB / 0.8951 GB, free: 3.93 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.939e-05/0.00668, allocations: 7.984 kB / 0.8952 GB, free: 3.922 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-06/0.006684, allocations: 7.938 kB / 0.8952 GB, free: 3.914 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.916e-05/0.006733, allocations: 143.2 kB / 0.8953 GB, free: 3.773 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.006733, allocations: 0 / 0.8953 GB, free: 3.773 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001446/0.006877, allocations: 15.94 kB / 0.8953 GB, free: 3.758 MB / 0.8542 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 7.639e-05/0.006954, allocations: 96.97 kB / 0.8954 GB, free: 3.656 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 8.362e-05/0.007037, allocations: 35.61 kB / 0.8954 GB, free: 3.617 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.007039, allocations: 0 / 0.8954 GB, free: 3.617 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.299e-05/0.007062, allocations: 11.69 kB / 0.8954 GB, free: 3.602 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001619/0.007224, allocations: 11.98 kB / 0.8955 GB, free: 3.59 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004641/0.007688, allocations: 194.6 kB / 0.8956 GB, free: 3.371 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.287e-05/0.007731, allocations: 59.36 kB / 0.8957 GB, free: 3.293 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.066e-05/0.007761, allocations: 3.984 kB / 0.8957 GB, free: 3.289 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.726e-05/0.007829, allocations: 78.2 kB / 0.8958 GB, free: 3.211 MB / 0.8542 GB Notification: Performance of SimCode: time 9.01e-07/0.007829, allocations: 0 / 0.8958 GB, free: 3.211 MB / 0.8542 GB Notification: Performance of Templates: time 0.002677/0.01051, allocations: 1.018 MB / 0.8968 GB, free: 2.242 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_DataCenter_BaseClasses_Controls_Examples_ChillerSwitch.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.3185716308653355]