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.00117/0.00117, allocations: 98.72 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 184.9 kB / 16.92 MB, free: 6.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 223.3 MB / 241 MB, free: 5.352 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.604/2.604, allocations: 437.8 MB / 0.7128 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004309/0.0004311, allocations: 12 kB / 0.8735 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7689/0.7694, allocations: 153.8 MB / 1.024 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002036/0.7715, allocations: 1.393 MB / 1.025 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001132/0.7726, allocations: 435.1 kB / 1.025 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.7728, allocations: 0 / 1.025 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 4.268e-05/0.7728, allocations: 3.938 kB / 1.025 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001736/0.773, allocations: 19.81 kB / 1.025 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003186/0.7734, allocations: 31.95 kB / 1.026 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001582/0.7735, allocations: 71.72 kB / 1.026 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/0.7737, allocations: 27.98 kB / 1.026 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001381/0.7739, allocations: 35.78 kB / 1.026 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001091/0.774, allocations: 23.86 kB / 1.026 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.065e-05/0.774, allocations: 4 kB / 1.026 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.494e-05/0.774, allocations: 4 kB / 1.026 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.932e-05/0.7741, allocations: 11.92 kB / 1.026 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.385e-05/0.7741, allocations: 53.5 kB / 1.026 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001231/0.7743, allocations: 61.84 kB / 1.026 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.7743, allocations: 0 / 1.026 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.056e-06/0.7743, allocations: 4 kB / 1.026 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.644e-06/0.7743, allocations: 0 / 1.026 GB, free: 13.68 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.0006935/0.775, allocations: 379.2 kB / 1.026 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.174e-05/0.7751, allocations: 8.031 kB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.837e-05/0.7751, allocations: 16.83 kB / 1.026 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002031/0.7754, allocations: 176.2 kB / 1.026 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.7754, allocations: 8.375 kB / 1.026 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.412e-05/0.7754, allocations: 4.375 kB / 1.026 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002797/0.7757, allocations: 95.69 kB / 1.026 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.7757, allocations: 0 / 1.026 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/0.7758, allocations: 4 kB / 1.026 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.7758, allocations: 4 kB / 1.026 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000185/0.776, allocations: 63.89 kB / 1.027 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005895/0.7766, allocations: 340.6 kB / 1.027 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.7767, allocations: 54.59 kB / 1.027 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.739e-05/0.7768, allocations: 28.94 kB / 1.027 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.7768, allocations: 4 kB / 1.027 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.7769, allocations: 34.56 kB / 1.027 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.7769, allocations: 0 / 1.027 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0003602/0.7772, allocations: 113.7 kB / 1.027 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/0.7773, allocations: 89.05 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.7774, allocations: 128.2 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/0.7775, allocations: 29.7 kB / 1.027 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.726e-05/0.7775, allocations: 99.98 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.7776, allocations: 7.891 kB / 1.027 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.87e-05/0.7776, allocations: 13.72 kB / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.7777, allocations: 322.8 kB / 1.028 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.271e-05/0.7778, allocations: 35.92 kB / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.527e-05/0.7779, allocations: 41.7 kB / 1.028 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001483/0.778, allocations: 56.86 kB / 1.028 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.7781, allocations: 0 / 1.028 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002014/0.7783, allocations: 101.5 kB / 1.028 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.7783, allocations: 5.719 kB / 1.028 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.7783, allocations: 4 kB / 1.028 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.7783, allocations: 0 / 1.028 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.7784, allocations: 15.98 kB / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.7784, allocations: 0 / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.403e-05/0.7785, allocations: 19.92 kB / 1.028 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.7785, allocations: 3.938 kB / 1.028 GB, free: 11.18 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 (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.857e-05/0.7787, allocations: 114.4 kB / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.97e-05/0.7787, allocations: 7.906 kB / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.392e-05/0.7787, allocations: 16.23 kB / 1.028 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.7787, allocations: 4 kB / 1.028 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.7787, allocations: 0 / 1.028 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.7788, allocations: 0 / 1.028 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001897/0.7789, allocations: 193.6 kB / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.779, allocations: 0 / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.83e-05/0.779, allocations: 8 kB / 1.028 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.779, allocations: 192 / 1.028 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.7791, allocations: 7.984 kB / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.7791, allocations: 0 / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.7791, allocations: 0 / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002419/0.7793, allocations: 195.3 kB / 1.029 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.442e-05/0.7794, allocations: 85.02 kB / 1.029 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.7794, allocations: 0 / 1.029 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.7795, allocations: 23.98 kB / 1.029 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.092e-05/0.7796, allocations: 7.984 kB / 1.029 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.7796, allocations: 0 / 1.029 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.21e-05/0.7796, allocations: 103.2 kB / 1.029 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7797, allocations: 3.938 kB / 1.029 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002212/0.7799, allocations: 12 kB / 1.029 GB, free: 10.32 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 (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.0001178/0.78, allocations: 103.2 kB / 1.029 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002228/0.7802, allocations: 63.91 kB / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.7802, allocations: 0 / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.694e-05/0.7803, allocations: 31.98 kB / 1.029 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.7806, allocations: 8 kB / 1.029 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004038/0.781, allocations: 232.2 kB / 1.029 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002418/0.7813, allocations: 0.7003 MB / 1.03 GB, free: 9.121 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.236e-05/0.7813, allocations: 11.44 kB / 1.03 GB, free: 9.109 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.7814, allocations: 0 / 1.03 GB, free: 9.109 MB / 0.7794 GB Notification: Performance of Templates: time 0.002365/0.7837, allocations: 0.9883 MB / 1.031 GB, free: 8.129 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/jenkins1/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