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.002115/0.002115, allocations: 89.27 kB / 19.44 MB, free: 1.977 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.002574/0.002574, allocations: 166.8 kB / 22.75 MB, free: 4.77 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.452/1.452, allocations: 177.1 MB / 203.1 MB, free: 9.039 MB / 190.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.102/3.102, allocations: 428.5 MB / 0.6719 GB, free: 9.555 MB / 0.6387 GB " [Timeout remaining time 176] 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.413e-06/1.413e-06, allocations: 0 / 0.8763 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.328e-05/2.47e-05, allocations: 6.25 kB / 0.8763 GB, free: 1.965 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002857/0.002882, allocations: 1.709 MB / 0.8779 GB, free: 268 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009225/0.003804, allocations: 0.4929 MB / 0.8784 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.778e-05/0.003862, allocations: 3.938 kB / 0.8784 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.239e-05/0.003894, allocations: 7.922 kB / 0.8784 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.506e-05/0.003969, allocations: 17.47 kB / 0.8784 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002262/0.004196, allocations: 47.88 kB / 0.8785 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001714/0.004367, allocations: 92.16 kB / 0.8786 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.654e-05/0.004463, allocations: 16.23 kB / 0.8786 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/0.004625, allocations: 64.75 kB / 0.8787 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.165e-05/0.004696, allocations: 23.91 kB / 0.8787 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.413e-05/0.00472, allocations: 9.062 kB / 0.8787 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 4.617e-05/0.004767, allocations: 16 kB / 0.8787 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.478e-05/0.004791, allocations: 15.91 kB / 0.8787 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.056e-05/0.004832, allocations: 21.27 kB / 0.8787 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001667/0.004999, allocations: 95.73 kB / 0.8788 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.005001, allocations: 3.938 kB / 0.8788 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of FrontEnd: time 7.41e-07/0.005002, allocations: 4 kB / 0.8788 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.115e-06/0.005005, allocations: 0 / 0.8788 GB, free: 15.34 MB / 0.8419 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.000499/0.005504, allocations: 325.9 kB / 0.8791 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.00554, allocations: 8.031 kB / 0.8792 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002347/0.005774, allocations: 28.88 kB / 0.8792 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002235/0.005998, allocations: 141.6 kB / 0.8793 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.006011, allocations: 4.375 kB / 0.8793 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.743e-05/0.006028, allocations: 8.375 kB / 0.8793 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002406/0.006269, allocations: 113.6 kB / 0.8794 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.006276, allocations: 192 / 0.8794 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/0.006291, allocations: 4.375 kB / 0.8794 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.006298, allocations: 3.938 kB / 0.8794 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001691/0.006467, allocations: 51.91 kB / 0.8795 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004578/0.006924, allocations: 256.4 kB / 0.8797 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.00708, allocations: 62.52 kB / 0.8798 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.693e-05/0.007167, allocations: 28.94 kB / 0.8798 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.00718, allocations: 0 / 0.8798 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/0.007214, allocations: 38.56 kB / 0.8799 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=4): time 8.61e-07/0.007215, allocations: 0 / 0.8799 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of matching and sorting (n=4): time 0.0003686/0.007584, allocations: 101.5 kB / 0.88 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/0.007638, allocations: 85.09 kB / 0.88 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001285/0.007767, allocations: 135.9 kB / 0.8802 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.00779, allocations: 25.7 kB / 0.8802 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.986e-05/0.00786, allocations: 96.14 kB / 0.8803 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.614e-05/0.007886, allocations: 19.83 kB / 0.8803 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.902e-05/0.007935, allocations: 17.72 kB / 0.8803 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001735/0.008109, allocations: 322.8 kB / 0.8806 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.716e-05/0.008196, allocations: 19.98 kB / 0.8807 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/0.008304, allocations: 63.41 kB / 0.8807 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001598/0.008464, allocations: 56.8 kB / 0.8808 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.008466, allocations: 0 / 0.8808 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002301/0.008696, allocations: 89.56 kB / 0.8809 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.00871, allocations: 4 kB / 0.8809 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.008716, allocations: 3.984 kB / 0.8809 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.008729, allocations: 3.938 kB / 0.8809 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.00883, allocations: 8 kB / 0.8809 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.008839, allocations: 3.984 kB / 0.8809 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.859e-05/0.008928, allocations: 19.98 kB / 0.8809 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.008935, allocations: 0 / 0.8809 GB, free: 13.03 MB / 0.8419 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 9.848e-05/0.009034, allocations: 121.8 kB / 0.881 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.718e-05/0.009071, allocations: 7.953 kB / 0.881 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.225e-05/0.009103, allocations: 12.34 kB / 0.881 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.009105, allocations: 0 / 0.881 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.009108, allocations: 0 / 0.881 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.00911, allocations: 0 / 0.881 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/0.00929, allocations: 133.2 kB / 0.8812 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.009291, allocations: 0 / 0.8812 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.911e-05/0.009371, allocations: 15.98 kB / 0.8812 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.009372, allocations: 4.125 kB / 0.8812 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.009385, allocations: 4 kB / 0.8812 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.009387, allocations: 0 / 0.8812 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.009387, allocations: 0 / 0.8812 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002754/0.009663, allocations: 183.4 kB / 0.8814 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 1.825e-05/0.009681, allocations: 7.953 kB / 0.8814 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.976e-05/0.009701, allocations: 0 / 0.8814 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.009813, allocations: 11.98 kB / 0.8814 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.276e-05/0.009866, allocations: 19.97 kB / 0.8814 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.811e-06/0.009871, allocations: 0 / 0.8814 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.131e-05/0.009953, allocations: 105.5 kB / 0.8815 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of sort global known variables: time 7.1e-08/0.009953, allocations: 0 / 0.8815 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002457/0.0102, allocations: 15.95 kB / 0.8815 GB, free: 12.34 MB / 0.8419 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.0001163/0.01031, allocations: 95.48 kB / 0.8816 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002212/0.01054, allocations: 63.88 kB / 0.8817 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.01054, allocations: 0 / 0.8817 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 8.893e-05/0.01063, allocations: 31.98 kB / 0.8817 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002553/0.01088, allocations: 5.859 kB / 0.8817 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004013/0.01128, allocations: 188.9 kB / 0.8819 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.497e-05/0.01136, allocations: 79.27 kB / 0.882 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 3.727e-05/0.0114, allocations: 3.938 kB / 0.882 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.266e-05/0.01144, allocations: 16.5 kB / 0.882 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of SimCode: time 4.51e-07/0.01144, allocations: 0 / 0.882 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of Templates: time 0.003686/0.01512, allocations: 0.9279 MB / 0.8829 GB, free: 10.93 MB / 0.8419 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 800] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.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: 7.898483894765377]