Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.554/1.554, allocations: 223.2 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.81/2.81, allocations: 437.7 MB / 0.7117 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003933/0.0003935, allocations: 8 kB / 0.8722 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8602/0.8606, allocations: 153.8 MB / 1.022 GB, free: 60 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001843/0.8625, allocations: 1.377 MB / 1.024 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0006838/0.8632, allocations: 419.3 kB / 1.024 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.107e-05/0.8633, allocations: 4 kB / 1.024 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.178e-05/0.8633, allocations: 7.922 kB / 1.024 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.694e-05/0.8634, allocations: 11.86 kB / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001577/0.8635, allocations: 27.91 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.936e-05/0.8637, allocations: 75.72 kB / 1.024 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.8638, allocations: 23.97 kB / 1.024 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.309e-05/0.8639, allocations: 27.92 kB / 1.024 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.559e-05/0.864, allocations: 23.86 kB / 1.024 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.807e-05/0.864, allocations: 4 kB / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.129e-05/0.864, allocations: 4 kB / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.993e-05/0.864, allocations: 11.92 kB / 1.024 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.31e-05/0.8641, allocations: 37.64 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 8.831e-05/0.8642, allocations: 57.83 kB / 1.024 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.8642, allocations: 0 / 1.024 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.693e-06/0.8642, allocations: 7.938 kB / 1.024 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.8642, allocations: 0 / 1.024 GB, free: 13.93 MB / 0.7794 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.0005361/0.8647, allocations: 387 kB / 1.025 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.8648, allocations: 8.562 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.727e-05/0.8648, allocations: 7.906 kB / 1.025 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.865, allocations: 175 kB / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.865, allocations: 4 kB / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.865, allocations: 4 kB / 1.025 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002168/0.8652, allocations: 107.2 kB / 1.025 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.8653, allocations: 3.984 kB / 1.025 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/0.8653, allocations: 0 / 1.025 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.8653, allocations: 4 kB / 1.025 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001595/0.8655, allocations: 51.97 kB / 1.025 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004869/0.866, allocations: 336.6 kB / 1.025 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001376/0.8661, allocations: 50.56 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.829e-05/0.8662, allocations: 36.94 kB / 1.026 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.963e-05/0.8662, allocations: 4 kB / 1.026 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.8663, allocations: 30.56 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.8663, allocations: 0 / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0003335/0.8666, allocations: 121.6 kB / 1.026 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.002e-05/0.8667, allocations: 77.11 kB / 1.026 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.8668, allocations: 132.6 kB / 1.026 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.8668, allocations: 29.7 kB / 1.026 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.664e-05/0.8669, allocations: 104 kB / 1.026 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.818e-05/0.8669, allocations: 11.81 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.929e-06/0.8669, allocations: 4 kB / 1.026 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.867, allocations: 322.8 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.237e-05/0.8671, allocations: 27.98 kB / 1.026 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.877e-05/0.8672, allocations: 41.7 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.744e-05/0.8673, allocations: 28.02 kB / 1.026 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.8673, allocations: 0 / 1.026 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001931/0.8675, allocations: 89.61 kB / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.8675, allocations: 8 kB / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.8675, allocations: 3.938 kB / 1.027 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.8675, allocations: 7.984 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.8677, allocations: 12 kB / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.8677, allocations: 0 / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.939e-05/0.8678, allocations: 19.89 kB / 1.027 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.8678, allocations: 0 / 1.027 GB, free: 11.49 MB / 0.7794 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 ($PRE.chiSwi.hysteresis.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.764e-05/0.8679, allocations: 133.7 kB / 1.027 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.727e-05/0.8679, allocations: 4 kB / 1.027 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.987e-05/0.8679, allocations: 12.25 kB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.8679, allocations: 0 / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.868, allocations: 0 / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.868, allocations: 0 / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001831/0.8681, allocations: 197.5 kB / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.8682, allocations: 0 / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.353e-05/0.8682, allocations: 16.11 kB / 1.027 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.8682, allocations: 0 / 1.027 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.8683, allocations: 8 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.8683, allocations: 0 / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.8683, allocations: 4 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002307/0.8685, allocations: 179.5 kB / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.931e-05/0.8686, allocations: 89.25 kB / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.153e-05/0.8686, allocations: 0 / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.8687, allocations: 15.98 kB / 1.027 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.602e-05/0.8688, allocations: 15.97 kB / 1.027 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.8688, allocations: 3.984 kB / 1.027 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.644e-05/0.8689, allocations: 95.27 kB / 1.027 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.8689, allocations: 0 / 1.027 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002302/0.8691, allocations: 16 kB / 1.027 GB, free: 10.62 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001054/0.8692, allocations: 113 kB / 1.027 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002065/0.8694, allocations: 55.97 kB / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.8694, allocations: 0 / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.747e-05/0.8695, allocations: 35.97 kB / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.8698, allocations: 15.89 kB / 1.028 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003544/0.8702, allocations: 210.3 kB / 1.028 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.8704, allocations: 0.6926 MB / 1.028 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.995e-05/0.8705, allocations: 0 / 1.028 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.542e-05/0.8705, allocations: 15.42 kB / 1.028 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of SimCode: time 4.11e-07/0.8705, allocations: 0 / 1.028 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of Templates: time 0.00296/0.8735, allocations: 0.7079 MB / 1.029 GB, free: 8.742 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches