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.347/1.347, allocations: 251.9 MB / 266.9 MB, free: 10.98 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001074/0.001074, allocations: 183.9 kB / 326.5 MB, free: 2.23 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.029/2.029, allocations: 205.4 MB / 0.5775 GB, free: 20.24 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.0008943/0.0008942, allocations: 90.34 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000377/0.0003775, allocations: 9.344 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2842, allocations: 106.3 MB / 0.9001 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1914/0.4757, allocations: 133.2 MB / 1.03 GB, free: 10.56 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003168/0.4761, allocations: 91.94 kB / 1.03 GB, free: 10.47 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004564/0.4807, allocations: 1.519 MB / 1.032 GB, free: 8.949 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.914e-06/0.4807, allocations: 0 / 1.032 GB, free: 8.949 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.644e-06/0.4807, allocations: 0 / 1.032 GB, free: 8.949 MB / 0.6823 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.0005398/0.4813, allocations: 394.9 kB / 1.032 GB, free: 8.516 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.755e-05/0.4813, allocations: 8.031 kB / 1.032 GB, free: 8.508 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.798e-05/0.4814, allocations: 7.906 kB / 1.032 GB, free: 8.5 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001972/0.4816, allocations: 175 kB / 1.032 GB, free: 8.289 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.4816, allocations: 11.98 kB / 1.032 GB, free: 8.277 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.011e-05/0.4817, allocations: 4 kB / 1.032 GB, free: 8.273 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002578/0.4819, allocations: 91.31 kB / 1.032 GB, free: 8.172 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.482, allocations: 4 kB / 1.032 GB, free: 8.168 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.154e-05/0.482, allocations: 4 kB / 1.032 GB, free: 8.164 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.482, allocations: 0 / 1.032 GB, free: 8.164 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.4822, allocations: 63.91 kB / 1.032 GB, free: 8.102 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006166/0.4828, allocations: 328.6 kB / 1.033 GB, free: 7.73 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001595/0.483, allocations: 58.56 kB / 1.033 GB, free: 7.664 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.483, allocations: 0 / 1.033 GB, free: 7.664 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.238e-05/0.483, allocations: 42.67 kB / 1.033 GB, free: 7.613 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.4831, allocations: 0 / 1.033 GB, free: 7.613 MB / 0.6823 GB Notification: Performance of matching and sorting (n=4): time 0.0004052/0.4835, allocations: 117.5 kB / 1.033 GB, free: 7.492 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.477e-05/0.4835, allocations: 77.11 kB / 1.033 GB, free: 7.398 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.4837, allocations: 122.5 kB / 1.033 GB, free: 7.27 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.4837, allocations: 25.7 kB / 1.033 GB, free: 7.238 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.47e-05/0.4838, allocations: 100 kB / 1.033 GB, free: 7.137 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.367e-05/0.4838, allocations: 11.84 kB / 1.033 GB, free: 7.125 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.196e-06/0.4838, allocations: 8 kB / 1.033 GB, free: 7.117 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001598/0.484, allocations: 314.8 kB / 1.034 GB, free: 6.801 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.326e-05/0.4841, allocations: 27.97 kB / 1.034 GB, free: 6.773 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.683e-05/0.4842, allocations: 41.7 kB / 1.034 GB, free: 6.727 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.867e-05/0.4843, allocations: 35.95 kB / 1.034 GB, free: 6.691 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4843, allocations: 0 / 1.034 GB, free: 6.691 MB / 0.6823 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002044/0.4845, allocations: 89.58 kB / 1.034 GB, free: 6.598 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.4846, allocations: 4 kB / 1.034 GB, free: 6.594 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.4846, allocations: 0 / 1.034 GB, free: 6.594 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.4846, allocations: 7.938 kB / 1.034 GB, free: 6.586 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.4847, allocations: 19.94 kB / 1.034 GB, free: 6.566 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.044e-06/0.4847, allocations: 0 / 1.034 GB, free: 6.566 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.265e-05/0.4848, allocations: 15.98 kB / 1.034 GB, free: 6.551 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.254e-05/0.4848, allocations: 7.984 kB / 1.034 GB, free: 6.543 MB / 0.6823 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 0.0001128/0.485, allocations: 117.8 kB / 1.034 GB, free: 6.418 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.035e-05/0.485, allocations: 7.906 kB / 1.034 GB, free: 6.41 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.274e-05/0.485, allocations: 16.17 kB / 1.034 GB, free: 6.387 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.4851, allocations: 4 kB / 1.034 GB, free: 6.383 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.4851, allocations: 3.953 kB / 1.034 GB, free: 6.379 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.4851, allocations: 0 / 1.034 GB, free: 6.379 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002092/0.4853, allocations: 181.6 kB / 1.034 GB, free: 6.152 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.4853, allocations: 0 / 1.034 GB, free: 6.152 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.387e-05/0.4854, allocations: 12 kB / 1.034 GB, free: 6.141 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.4854, allocations: 0 / 1.034 GB, free: 6.141 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.4854, allocations: 7.984 kB / 1.034 GB, free: 6.133 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.4854, allocations: 0 / 1.034 GB, free: 6.133 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.4854, allocations: 0 / 1.034 GB, free: 6.133 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00026/0.4857, allocations: 191.6 kB / 1.034 GB, free: 5.93 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.761e-05/0.4858, allocations: 85.06 kB / 1.034 GB, free: 5.828 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.711e-05/0.4858, allocations: 12.11 kB / 1.034 GB, free: 5.816 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.4859, allocations: 15.98 kB / 1.034 GB, free: 5.801 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.117e-05/0.486, allocations: 7.984 kB / 1.034 GB, free: 5.793 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.486, allocations: 7.938 kB / 1.034 GB, free: 5.785 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.933e-05/0.4861, allocations: 105.1 kB / 1.035 GB, free: 5.684 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4861, allocations: 0 / 1.035 GB, free: 5.684 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002087/0.4863, allocations: 11.95 kB / 1.035 GB, free: 5.672 MB / 0.6823 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.0001494/0.4865, allocations: 107.2 kB / 1.035 GB, free: 5.559 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002172/0.4867, allocations: 59.97 kB / 1.035 GB, free: 5.5 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4867, allocations: 0 / 1.035 GB, free: 5.5 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.098e-05/0.4868, allocations: 35.92 kB / 1.035 GB, free: 5.465 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002182/0.487, allocations: 8.656 kB / 1.035 GB, free: 5.457 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004898/0.4875, allocations: 198.7 kB / 1.035 GB, free: 5.238 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003439/0.4879, allocations: 0.6965 MB / 1.036 GB, free: 4.516 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.998e-05/0.4879, allocations: 7.984 kB / 1.036 GB, free: 4.508 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.128e-05/0.488, allocations: 11.44 kB / 1.036 GB, free: 4.496 MB / 0.6823 GB Notification: Performance of SimCode: time 6.41e-07/0.488, allocations: 0 / 1.036 GB, free: 4.496 MB / 0.6823 GB Notification: Performance of Templates: time 0.003192/0.4912, allocations: 0.7135 MB / 1.036 GB, free: 3.824 MB / 0.6823 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