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.001958/0.001958, allocations: 83.69 kB / 20.24 MB, free: 4.184 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.002166/0.002166, 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.601/1.601, allocations: 177.1 MB / 203.9 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.187/3.187, allocations: 377.8 MB / 0.6232 GB, free: 8.512 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 0.8108 GB, free: 2.105 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.568e-05/2.718e-05, allocations: 3.219 kB / 0.8108 GB, free: 2.102 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003186/0.003213, allocations: 1.714 MB / 0.8125 GB, free: 408 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001024/0.004236, allocations: 0.4978 MB / 0.813 GB, free: 15.9 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.239e-05/0.004299, allocations: 0 / 0.813 GB, free: 15.9 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.634e-05/0.004335, allocations: 15.8 kB / 0.813 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 9.414e-05/0.004429, allocations: 17 kB / 0.813 GB, free: 15.87 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002376/0.004667, allocations: 43.88 kB / 0.813 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001801/0.004847, allocations: 91.64 kB / 0.8131 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.004953, allocations: 21.8 kB / 0.8131 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001741/0.005127, allocations: 51.84 kB / 0.8132 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 8.294e-05/0.00521, allocations: 35.89 kB / 0.8132 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.278e-05/0.005233, allocations: 6.594 kB / 0.8132 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 5.051e-05/0.005283, allocations: 12 kB / 0.8132 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.459e-05/0.005308, allocations: 15.92 kB / 0.8133 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 4.627e-05/0.005354, allocations: 27.92 kB / 0.8133 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001869/0.005541, allocations: 99.59 kB / 0.8134 GB, free: 15.47 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.005543, allocations: 0 / 0.8134 GB, free: 15.47 MB / 0.7761 GB Notification: Performance of FrontEnd: time 6.61e-07/0.005544, allocations: 0 / 0.8134 GB, free: 15.47 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 7.584e-06/0.005552, allocations: 4.5 kB / 0.8134 GB, free: 15.46 MB / 0.7761 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.0006331/0.006185, allocations: 424.6 kB / 0.8138 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.006219, allocations: 8.031 kB / 0.8138 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002219/0.006441, allocations: 27.06 kB / 0.8138 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002174/0.006658, allocations: 136.5 kB / 0.814 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.006675, allocations: 12.36 kB / 0.814 GB, free: 14.81 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.006687, allocations: 384 / 0.814 GB, free: 14.81 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000253/0.00694, allocations: 127.7 kB / 0.8141 GB, free: 14.67 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.006947, allocations: 0.7812 kB / 0.8141 GB, free: 14.67 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.006959, allocations: 1.156 kB / 0.8141 GB, free: 14.67 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.006965, allocations: 3.938 kB / 0.8141 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001512/0.007116, allocations: 45.12 kB / 0.8141 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005395/0.007656, allocations: 331.6 kB / 0.8145 GB, free: 14.26 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001634/0.007819, allocations: 56.36 kB / 0.8145 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.851e-05/0.007898, allocations: 27.72 kB / 0.8145 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.007916, allocations: 5.688 kB / 0.8145 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.007956, allocations: 37.39 kB / 0.8146 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.007957, allocations: 0 / 0.8146 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of matching and sorting (n=4): time 0.0003321/0.008289, allocations: 94.55 kB / 0.8147 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.645e-05/0.008355, allocations: 77.11 kB / 0.8147 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001878/0.008543, allocations: 205.8 kB / 0.8149 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.008571, allocations: 31.92 kB / 0.815 GB, free: 13.67 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.008694, allocations: 150.8 kB / 0.8151 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.508e-05/0.008719, allocations: 15.84 kB / 0.8151 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.276e-05/0.008781, allocations: 31.36 kB / 0.8152 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002708/0.009052, allocations: 0.4923 MB / 0.8156 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.877e-05/0.009131, allocations: 26.66 kB / 0.8157 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.009234, allocations: 65.06 kB / 0.8157 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001276/0.009362, allocations: 43.67 kB / 0.8158 GB, free: 12.81 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.009366, allocations: 3.938 kB / 0.8158 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001973/0.009563, allocations: 85.62 kB / 0.8159 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.009577, allocations: 5.562 kB / 0.8159 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.009581, allocations: 192 / 0.8159 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.009593, allocations: 0 / 0.8159 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.009694, allocations: 19.92 kB / 0.8159 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.83e-06/0.009699, allocations: 0 / 0.8159 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.496e-05/0.009763, allocations: 4.5 kB / 0.8159 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.009771, allocations: 1.531 kB / 0.8159 GB, free: 12.69 MB / 0.7761 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.0001359/0.009907, allocations: 168.5 kB / 0.816 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.629e-05/0.009943, allocations: 11.94 kB / 0.8161 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.986e-05/0.009973, allocations: 8.844 kB / 0.8161 GB, free: 12.49 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.009975, allocations: 1.031 kB / 0.8161 GB, free: 12.49 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.604e-06/0.009978, allocations: 4 kB / 0.8161 GB, free: 12.49 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.00998, allocations: 0 / 0.8161 GB, free: 12.49 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001947/0.01017, allocations: 145.5 kB / 0.8162 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.01018, allocations: 3.938 kB / 0.8162 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.03e-05/0.01025, allocations: 15.67 kB / 0.8162 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.01025, allocations: 0 / 0.8162 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.737e-06/0.01026, allocations: 0 / 0.8162 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.01026, allocations: 0 / 0.8162 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.01026, allocations: 0 / 0.8162 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002956/0.01056, allocations: 231.9 kB / 0.8164 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.895e-05/0.01058, allocations: 11.92 kB / 0.8165 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.0106, allocations: 8 kB / 0.8165 GB, free: 12.03 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.645e-05/0.0107, allocations: 7.984 kB / 0.8165 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.289e-05/0.01075, allocations: 9.734 kB / 0.8165 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.491e-06/0.01075, allocations: 0 / 0.8165 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.000112/0.01087, allocations: 159.2 kB / 0.8166 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01087, allocations: 0 / 0.8166 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.000225/0.01109, allocations: 12 kB / 0.8166 GB, free: 11.85 MB / 0.7761 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.0001274/0.01122, allocations: 96.19 kB / 0.8167 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.000221/0.01144, allocations: 60.72 kB / 0.8168 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.01144, allocations: 0 / 0.8168 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 8.759e-05/0.01153, allocations: 36.8 kB / 0.8168 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002332/0.01176, allocations: 10.19 kB / 0.8168 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004147/0.01218, allocations: 183.7 kB / 0.817 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.922e-05/0.01227, allocations: 83.89 kB / 0.8171 GB, free: 11.33 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.212e-05/0.01231, allocations: 5.656 kB / 0.8171 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.323e-05/0.01235, allocations: 12.5 kB / 0.8171 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of SimCode: time 4.31e-07/0.01235, allocations: 0 / 0.8171 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of Templates: time 0.003933/0.01629, allocations: 0.9449 MB / 0.818 GB, free: 10.41 MB / 0.7761 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 240] 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/jenkins/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: 8.188034369028173]