Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.478/1.478, allocations: 249.3 MB / 261.8 MB, free: 5.934 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001232/0.001232, allocations: 172.9 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.591/1.591, allocations: 205.2 MB / 0.572 GB, free: 10.69 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009956/0.0009958, allocations: 99.09 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.386e-05/3.417e-05, allocations: 8 kB / 0.788 GB, free: 97.08 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1968/0.1968, allocations: 106.3 MB / 0.8918 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7138/0.9107, allocations: 133.1 MB / 1.022 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/0.911, allocations: 92.91 kB / 1.022 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004142/0.9151, allocations: 1.516 MB / 1.023 GB, free: 284 kB / 0.6355 GB Notification: Performance of FrontEnd: time 1.673e-06/0.9152, allocations: 0 / 1.023 GB, free: 284 kB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.418e-06/0.9152, allocations: 7.938 kB / 1.023 GB, free: 276 kB / 0.6355 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.0004144/0.9156, allocations: 369.7 kB / 1.024 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.9156, allocations: 8.031 kB / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.978e-05/0.9157, allocations: 11.91 kB / 1.024 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.9159, allocations: 179.8 kB / 1.024 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.9159, allocations: 3.375 kB / 1.024 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.542e-05/0.9159, allocations: 4 kB / 1.024 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000164/0.9161, allocations: 86.27 kB / 1.024 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.9161, allocations: 0 / 1.024 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.9161, allocations: 3.5 kB / 1.024 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.9161, allocations: 4 kB / 1.024 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.389e-05/0.9162, allocations: 30.06 kB / 1.024 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004861/0.9167, allocations: 332.6 kB / 1.024 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 9.856e-05/0.9168, allocations: 37.52 kB / 1.024 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.008e-05/0.9169, allocations: 23.61 kB / 1.024 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.6e-05/0.9169, allocations: 0 / 1.024 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.9169, allocations: 42.67 kB / 1.024 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=4): time 8.72e-07/0.9169, allocations: 2.734 kB / 1.024 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of matching and sorting (n=4): time 0.0001786/0.9171, allocations: 64.23 kB / 1.024 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.793e-05/0.9172, allocations: 81.11 kB / 1.025 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.233e-05/0.9173, allocations: 115.1 kB / 1.025 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.9173, allocations: 37.58 kB / 1.025 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.584e-05/0.9174, allocations: 98.11 kB / 1.025 GB, free: 14.67 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.03e-05/0.9174, allocations: 11.39 kB / 1.025 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.539e-06/0.9174, allocations: 0 / 1.025 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.9175, allocations: 318.7 kB / 1.025 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.541e-05/0.9176, allocations: 15.06 kB / 1.025 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.083e-05/0.9176, allocations: 29.14 kB / 1.025 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.729e-05/0.9177, allocations: 14.94 kB / 1.025 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.9177, allocations: 4.031 kB / 1.025 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001115/0.9178, allocations: 71.84 kB / 1.025 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.9178, allocations: 4 kB / 1.025 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.9178, allocations: 0 / 1.025 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.9178, allocations: 3.953 kB / 1.025 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.918, allocations: 15.98 kB / 1.025 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.918, allocations: 3.938 kB / 1.025 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.436e-05/0.9181, allocations: 19.98 kB / 1.025 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.106e-06/0.9181, allocations: 0 / 1.025 GB, free: 14.18 MB / 0.6511 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 () * 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 6.688e-05/0.9182, allocations: 108.5 kB / 1.025 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.741e-05/0.9182, allocations: 3.906 kB / 1.025 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.509e-05/0.9183, allocations: 11.03 kB / 1.025 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.685e-06/0.9183, allocations: 3.984 kB / 1.025 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.9183, allocations: 11.83 kB / 1.025 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.9183, allocations: 0 / 1.025 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001829/0.9185, allocations: 184.3 kB / 1.026 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.9185, allocations: 48 / 1.026 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.373e-05/0.9186, allocations: 19.97 kB / 1.026 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.9186, allocations: 192 / 1.026 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.9186, allocations: 4 kB / 1.026 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.584e-06/0.9186, allocations: 7.984 kB / 1.026 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.9186, allocations: 0 / 1.026 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001526/0.9188, allocations: 158.2 kB / 1.026 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.521e-05/0.9188, allocations: 88.95 kB / 1.026 GB, free: 13.53 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.15e-05/0.9189, allocations: 7.562 kB / 1.026 GB, free: 13.53 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.919, allocations: 15.98 kB / 1.026 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.897e-05/0.919, allocations: 11.97 kB / 1.026 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-06/0.919, allocations: 0 / 1.026 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.852e-05/0.9191, allocations: 102 kB / 1.026 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9191, allocations: 0 / 1.026 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002043/0.9193, allocations: 15.44 kB / 1.026 GB, free: 13.39 MB / 0.6511 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) * 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.0001167/0.9195, allocations: 107.2 kB / 1.026 GB, free: 13.28 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001285/0.9196, allocations: 33.62 kB / 1.026 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.9196, allocations: 0 / 1.026 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.93e-05/0.9196, allocations: 15.44 kB / 1.026 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001683/0.9198, allocations: 15.05 kB / 1.026 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002539/0.9201, allocations: 100.1 kB / 1.026 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.9204, allocations: 0.6965 MB / 1.027 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.421e-05/0.9204, allocations: 7.938 kB / 1.027 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.667e-05/0.9204, allocations: 15.42 kB / 1.027 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of SimCode: time 2.41e-07/0.9205, allocations: 0 / 1.027 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of Templates: time 0.002638/0.9231, allocations: 0.7278 MB / 1.028 GB, free: 11.7 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches