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.001494/0.001494, allocations: 80.41 kB / 20.23 MB, free: 4.203 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.001572/0.001572, allocations: 161.7 kB / 23.55 MB, free: 0.8906 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.48/1.48, allocations: 177.1 MB / 203.9 MB, free: 5.574 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.719/2.719, allocations: 359 MB / 0.6048 GB, free: 10.95 MB / 0.573 GB " [Timeout remaining time 177] 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.343e-06/1.343e-06, allocations: 0 / 0.7864 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.975e-05/3.109e-05, allocations: 8.688 kB / 0.7864 GB, free: 12.8 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.00339/0.003421, allocations: 1.697 MB / 0.788 GB, free: 11.11 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001094/0.004516, allocations: 0.4897 MB / 0.7885 GB, free: 10.62 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.661e-05/0.004592, allocations: 0 / 0.7885 GB, free: 10.62 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 4.022e-05/0.004632, allocations: 7.875 kB / 0.7885 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.004739, allocations: 24.81 kB / 0.7885 GB, free: 10.59 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002556/0.004994, allocations: 44.52 kB / 0.7886 GB, free: 10.55 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001873/0.005182, allocations: 87.64 kB / 0.7887 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.005286, allocations: 21.62 kB / 0.7887 GB, free: 10.44 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001897/0.005476, allocations: 55.88 kB / 0.7887 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 8.197e-05/0.005558, allocations: 27.91 kB / 0.7888 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.425e-05/0.005582, allocations: 9.125 kB / 0.7888 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 4.837e-05/0.005631, allocations: 11.94 kB / 0.7888 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.736e-05/0.005658, allocations: 19.97 kB / 0.7888 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 4.099e-05/0.005699, allocations: 21 kB / 0.7888 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002015/0.005901, allocations: 95.67 kB / 0.7889 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.013e-06/0.005903, allocations: 0 / 0.7889 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of FrontEnd: time 7.52e-07/0.005903, allocations: 1.219 kB / 0.7889 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.95e-06/0.005908, allocations: 0 / 0.7889 GB, free: 10.2 MB / 0.7448 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.0006068/0.006515, allocations: 323.3 kB / 0.7892 GB, free: 9.859 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.006553, allocations: 12.03 kB / 0.7892 GB, free: 9.848 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002412/0.006794, allocations: 27.72 kB / 0.7893 GB, free: 9.824 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002818/0.007076, allocations: 143.9 kB / 0.7894 GB, free: 9.66 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.823e-05/0.007094, allocations: 8.375 kB / 0.7894 GB, free: 9.652 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.701e-05/0.007111, allocations: 4.375 kB / 0.7894 GB, free: 9.648 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002591/0.00737, allocations: 117.6 kB / 0.7895 GB, free: 9.516 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.007378, allocations: 192 / 0.7895 GB, free: 9.516 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.007393, allocations: 4.359 kB / 0.7895 GB, free: 9.512 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.0074, allocations: 4.656 kB / 0.7895 GB, free: 9.508 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001817/0.007582, allocations: 53.61 kB / 0.7896 GB, free: 9.457 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005091/0.008091, allocations: 256.4 kB / 0.7898 GB, free: 9.176 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001602/0.008251, allocations: 55.69 kB / 0.7899 GB, free: 9.113 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.212e-05/0.008343, allocations: 26.53 kB / 0.7899 GB, free: 9.086 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.008362, allocations: 0 / 0.7899 GB, free: 9.086 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.792e-05/0.0084, allocations: 38.59 kB / 0.7899 GB, free: 9.039 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=4): time 1.212e-06/0.008402, allocations: 0 / 0.7899 GB, free: 9.039 MB / 0.7448 GB Notification: Performance of matching and sorting (n=4): time 0.0003852/0.008787, allocations: 103.4 kB / 0.79 GB, free: 8.934 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.702e-05/0.008854, allocations: 81.11 kB / 0.7901 GB, free: 8.836 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.009007, allocations: 129.8 kB / 0.7902 GB, free: 8.699 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.009035, allocations: 30.48 kB / 0.7903 GB, free: 8.664 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.00919, allocations: 104.1 kB / 0.7904 GB, free: 8.559 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.819e-05/0.009208, allocations: 4.484 kB / 0.7904 GB, free: 8.555 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.313e-05/0.009261, allocations: 17.72 kB / 0.7904 GB, free: 8.531 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001734/0.009434, allocations: 323.5 kB / 0.7907 GB, free: 8.207 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.431e-05/0.009529, allocations: 20.52 kB / 0.7907 GB, free: 8.188 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.009645, allocations: 68.66 kB / 0.7908 GB, free: 8.109 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001623/0.009807, allocations: 56.89 kB / 0.7908 GB, free: 8.051 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.00981, allocations: 0.5312 kB / 0.7908 GB, free: 8.051 MB / 0.7448 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000241/0.01005, allocations: 94.98 kB / 0.7909 GB, free: 7.953 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.01007, allocations: 4 kB / 0.7909 GB, free: 7.949 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.01007, allocations: 1.156 kB / 0.7909 GB, free: 7.949 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.01009, allocations: 0 / 0.7909 GB, free: 7.949 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.0102, allocations: 11.98 kB / 0.791 GB, free: 7.938 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.0102, allocations: 1.219 kB / 0.791 GB, free: 7.938 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.221e-05/0.01029, allocations: 23.81 kB / 0.791 GB, free: 7.914 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.0103, allocations: 0 / 0.791 GB, free: 7.914 MB / 0.7448 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.0001155/0.01042, allocations: 123.5 kB / 0.7911 GB, free: 7.785 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.103e-05/0.01046, allocations: 11.95 kB / 0.7911 GB, free: 7.773 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.559e-05/0.01049, allocations: 8.344 kB / 0.7911 GB, free: 7.762 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.0105, allocations: 0 / 0.7911 GB, free: 7.762 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.0105, allocations: 0.7812 kB / 0.7911 GB, free: 7.762 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.0105, allocations: 0 / 0.7911 GB, free: 7.762 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001926/0.0107, allocations: 139.2 kB / 0.7912 GB, free: 7.598 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.0107, allocations: 0 / 0.7912 GB, free: 7.598 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.118e-05/0.01079, allocations: 11.98 kB / 0.7913 GB, free: 7.586 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.01079, allocations: 0 / 0.7913 GB, free: 7.586 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.908e-06/0.0108, allocations: 0 / 0.7913 GB, free: 7.586 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.414e-06/0.01081, allocations: 4.766 kB / 0.7913 GB, free: 7.582 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.01081, allocations: 0 / 0.7913 GB, free: 7.582 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002977/0.01111, allocations: 190.8 kB / 0.7914 GB, free: 7.383 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.49e-05/0.01112, allocations: 3.953 kB / 0.7914 GB, free: 7.379 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.715e-05/0.01115, allocations: 8 kB / 0.7915 GB, free: 7.371 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.01127, allocations: 12.05 kB / 0.7915 GB, free: 7.359 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.923e-05/0.01133, allocations: 8.219 kB / 0.7915 GB, free: 7.352 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.152e-06/0.01133, allocations: 0 / 0.7915 GB, free: 7.352 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 8.826e-05/0.01142, allocations: 105.6 kB / 0.7916 GB, free: 7.25 MB / 0.7448 GB Notification: Performance of sort global known variables: time 8e-08/0.01142, allocations: 0.625 kB / 0.7916 GB, free: 7.25 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002581/0.01168, allocations: 12 kB / 0.7916 GB, free: 7.238 MB / 0.7448 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.0001395/0.01182, allocations: 109.4 kB / 0.7917 GB, free: 7.125 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002241/0.01204, allocations: 51.97 kB / 0.7917 GB, free: 7.074 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.01205, allocations: 0 / 0.7917 GB, free: 7.074 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 8.991e-05/0.01214, allocations: 28.73 kB / 0.7918 GB, free: 7.047 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.0124, allocations: 16.86 kB / 0.7918 GB, free: 7.031 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004559/0.01286, allocations: 170.3 kB / 0.7919 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.162e-05/0.01295, allocations: 79.27 kB / 0.792 GB, free: 6.738 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.98e-05/0.01299, allocations: 2.531 kB / 0.792 GB, free: 6.738 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.242e-05/0.01304, allocations: 20.48 kB / 0.792 GB, free: 6.719 MB / 0.7448 GB Notification: Performance of SimCode: time 5.61e-07/0.01304, allocations: 0 / 0.792 GB, free: 6.719 MB / 0.7448 GB Notification: Performance of Templates: time 0.003782/0.01682, allocations: 0.939 MB / 0.793 GB, free: 5.828 MB / 0.7448 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=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 400] 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.548123270040378]