Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.002466/0.002466, allocations: 83.69 kB / 20.23 MB, free: 4.188 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.00325/0.00325, allocations: 161.3 kB / 23.55 MB, free: 0.8711 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 1.581/1.581, allocations: 177.1 MB / 203.9 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.987/2.987, allocations: 359 MB / 0.6048 GB, free: 10.93 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 0.7864 GB, free: 11.71 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.48e-05/2.619e-05, allocations: 2.312 kB / 0.7864 GB, free: 11.7 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003334/0.00336, allocations: 1.702 MB / 0.788 GB, free: 10.01 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.00103/0.00439, allocations: 0.5014 MB / 0.7885 GB, free: 9.504 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.53e-05/0.004455, allocations: 0 / 0.7885 GB, free: 9.504 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 3.253e-05/0.004488, allocations: 7.875 kB / 0.7885 GB, free: 9.496 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 8.615e-05/0.004574, allocations: 21.12 kB / 0.7886 GB, free: 9.477 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002425/0.004816, allocations: 47.88 kB / 0.7886 GB, free: 9.43 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001624/0.004979, allocations: 87.66 kB / 0.7887 GB, free: 9.344 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.00508, allocations: 20.77 kB / 0.7887 GB, free: 9.32 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001743/0.005254, allocations: 61.19 kB / 0.7888 GB, free: 9.262 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 7.705e-05/0.005332, allocations: 27.91 kB / 0.7888 GB, free: 9.234 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.893e-05/0.00536, allocations: 11.98 kB / 0.7888 GB, free: 9.223 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 4.597e-05/0.005406, allocations: 12.97 kB / 0.7888 GB, free: 9.211 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.675e-05/0.005433, allocations: 19.92 kB / 0.7888 GB, free: 9.191 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 4.095e-05/0.005474, allocations: 19.94 kB / 0.7889 GB, free: 9.172 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001974/0.005671, allocations: 101.1 kB / 0.7889 GB, free: 9.074 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.005674, allocations: 0 / 0.7889 GB, free: 9.074 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.192e-06/0.005676, allocations: 0 / 0.7889 GB, free: 9.074 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.005681, allocations: 0 / 0.7889 GB, free: 9.074 MB / 0.698 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.0006053/0.006286, allocations: 420.5 kB / 0.7893 GB, free: 8.629 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.006324, allocations: 12.62 kB / 0.7894 GB, free: 8.617 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002182/0.006542, allocations: 29.94 kB / 0.7894 GB, free: 8.59 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.006771, allocations: 141.9 kB / 0.7895 GB, free: 8.426 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.006781, allocations: 384 / 0.7895 GB, free: 8.426 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.949e-05/0.006801, allocations: 12.31 kB / 0.7895 GB, free: 8.414 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002364/0.007037, allocations: 123.2 kB / 0.7897 GB, free: 8.273 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.007045, allocations: 1.156 kB / 0.7897 GB, free: 8.273 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.007059, allocations: 4.375 kB / 0.7897 GB, free: 8.27 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.007069, allocations: 8.688 kB / 0.7897 GB, free: 8.262 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001424/0.007211, allocations: 31.98 kB / 0.7897 GB, free: 8.23 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005338/0.007745, allocations: 330.1 kB / 0.79 GB, free: 7.875 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001528/0.007898, allocations: 58.98 kB / 0.7901 GB, free: 7.805 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.348e-05/0.007981, allocations: 31.8 kB / 0.7901 GB, free: 7.77 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/0.008002, allocations: 4 kB / 0.7901 GB, free: 7.766 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.64e-05/0.008038, allocations: 35.11 kB / 0.7901 GB, free: 7.723 MB / 0.698 GB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.008039, allocations: 0 / 0.7901 GB, free: 7.723 MB / 0.698 GB Notification: Performance of matching and sorting (n=4): time 0.0003276/0.008367, allocations: 97.78 kB / 0.7902 GB, free: 7.621 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.437e-05/0.008431, allocations: 85.58 kB / 0.7903 GB, free: 7.52 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001927/0.008624, allocations: 203.8 kB / 0.7905 GB, free: 7.305 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.009e-05/0.008654, allocations: 30.42 kB / 0.7905 GB, free: 7.27 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.00876, allocations: 151.3 kB / 0.7907 GB, free: 7.117 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.597e-05/0.008786, allocations: 15.94 kB / 0.7907 GB, free: 7.102 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.207e-05/0.008838, allocations: 25.03 kB / 0.7907 GB, free: 7.07 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.000269/0.009107, allocations: 0.4923 MB / 0.7912 GB, free: 6.566 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.624e-05/0.009183, allocations: 23.92 kB / 0.7912 GB, free: 6.543 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.009292, allocations: 69.56 kB / 0.7913 GB, free: 6.461 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001311/0.009423, allocations: 44.27 kB / 0.7913 GB, free: 6.414 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.009427, allocations: 3.938 kB / 0.7913 GB, free: 6.41 MB / 0.698 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002029/0.00963, allocations: 78.42 kB / 0.7914 GB, free: 6.328 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.009646, allocations: 9.141 kB / 0.7914 GB, free: 6.32 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.00965, allocations: 192 / 0.7914 GB, free: 6.32 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.009662, allocations: 4 kB / 0.7914 GB, free: 6.316 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.857e-05/0.009761, allocations: 13.31 kB / 0.7914 GB, free: 6.305 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.409e-06/0.009765, allocations: 0 / 0.7914 GB, free: 6.305 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.764e-05/0.009843, allocations: 23.88 kB / 0.7915 GB, free: 6.281 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.00985, allocations: 1.812 kB / 0.7915 GB, free: 6.281 MB / 0.698 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.0001355/0.009986, allocations: 164.5 kB / 0.7916 GB, free: 6.109 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.51e-05/0.01002, allocations: 7.953 kB / 0.7916 GB, free: 6.102 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.199e-05/0.01006, allocations: 16.33 kB / 0.7916 GB, free: 6.082 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.01006, allocations: 1.375 kB / 0.7916 GB, free: 6.082 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.01007, allocations: 0 / 0.7916 GB, free: 6.082 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.01007, allocations: 0 / 0.7916 GB, free: 6.082 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000202/0.01027, allocations: 148.6 kB / 0.7918 GB, free: 5.902 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.01028, allocations: 5.094 kB / 0.7918 GB, free: 5.898 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.401e-05/0.01034, allocations: 4 kB / 0.7918 GB, free: 5.895 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.01034, allocations: 0 / 0.7918 GB, free: 5.895 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.01035, allocations: 1.906 kB / 0.7918 GB, free: 5.895 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.833e-06/0.01036, allocations: 7.984 kB / 0.7918 GB, free: 5.887 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.01036, allocations: 0 / 0.7918 GB, free: 5.887 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002942/0.01065, allocations: 223.8 kB / 0.792 GB, free: 5.648 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.036e-05/0.01067, allocations: 11.89 kB / 0.792 GB, free: 5.637 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.061e-05/0.01069, allocations: 2.438 kB / 0.792 GB, free: 5.637 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.551e-05/0.01079, allocations: 7.984 kB / 0.792 GB, free: 5.629 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.437e-05/0.01084, allocations: 15.92 kB / 0.792 GB, free: 5.613 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.01085, allocations: 4 kB / 0.7921 GB, free: 5.609 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001113/0.01096, allocations: 149.4 kB / 0.7922 GB, free: 5.465 MB / 0.698 GB Notification: Performance of sort global known variables: time 7e-08/0.01096, allocations: 0 / 0.7922 GB, free: 5.465 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002241/0.01119, allocations: 12.53 kB / 0.7922 GB, free: 5.453 MB / 0.698 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.0001419/0.01133, allocations: 105.2 kB / 0.7923 GB, free: 5.34 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002062/0.01153, allocations: 55.61 kB / 0.7924 GB, free: 5.281 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.01154, allocations: 0 / 0.7924 GB, free: 5.281 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 8.656e-05/0.01162, allocations: 34.23 kB / 0.7924 GB, free: 5.246 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002513/0.01187, allocations: 15.92 kB / 0.7924 GB, free: 5.23 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004361/0.01231, allocations: 170.8 kB / 0.7926 GB, free: 5.035 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.584e-05/0.01241, allocations: 80.17 kB / 0.7926 GB, free: 4.938 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 4.454e-05/0.01245, allocations: 8.906 kB / 0.7927 GB, free: 4.93 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.646e-05/0.0125, allocations: 12.48 kB / 0.7927 GB, free: 4.918 MB / 0.698 GB Notification: Performance of SimCode: time 5.31e-07/0.0125, allocations: 1.188 kB / 0.7927 GB, free: 4.918 MB / 0.698 GB Notification: Performance of Templates: time 0.004035/0.01653, allocations: 0.9419 MB / 0.7936 GB, free: 4.023 MB / 0.698 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 7.885874351020902]