Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.398/2.398, allocations: 393.5 MB / 408.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 172 kB / 0.4902 GB, free: 2.25 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.741/1.741, allocations: 223.2 MB / 0.7992 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 90.58 kB / 0.9396 GB, free: 2.871 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003971/0.0003973, allocations: 11.91 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4352/0.4356, allocations: 143 MB / 1.229 GB, free: 85.48 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2608/0.6965, allocations: 151.5 MB / 1.377 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004327/0.697, allocations: 99.92 kB / 1.377 GB, free: 13.72 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.005415/0.7025, allocations: 1.545 MB / 1.379 GB, free: 12.17 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.424e-06/0.7025, allocations: 3.938 kB / 1.379 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.474e-05/0.7025, allocations: 4 kB / 1.379 GB, free: 12.16 MB / 0.8855 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.0006926/0.7032, allocations: 395 kB / 1.379 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 7.083e-05/0.7033, allocations: 8.562 kB / 1.379 GB, free: 11.72 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.244e-05/0.7034, allocations: 11.86 kB / 1.379 GB, free: 11.71 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002361/0.7037, allocations: 174.9 kB / 1.379 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.7037, allocations: 8 kB / 1.379 GB, free: 11.49 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.134e-05/0.7037, allocations: 4 kB / 1.379 GB, free: 11.48 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002932/0.704, allocations: 99.31 kB / 1.379 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.7041, allocations: 0 / 1.379 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.7041, allocations: 3.984 kB / 1.379 GB, free: 11.37 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.7041, allocations: 0 / 1.379 GB, free: 11.37 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/0.7043, allocations: 59.97 kB / 1.379 GB, free: 11.31 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006781/0.705, allocations: 332.6 kB / 1.38 GB, free: 10.94 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001597/0.7052, allocations: 50.56 kB / 1.38 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.857e-05/0.7052, allocations: 0 / 1.38 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.282e-05/0.7052, allocations: 30.56 kB / 1.38 GB, free: 10.84 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=4): time 9.92e-07/0.7052, allocations: 0 / 1.38 GB, free: 10.84 MB / 0.8855 GB Notification: Performance of matching and sorting (n=4): time 0.0004084/0.7056, allocations: 121.9 kB / 1.38 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.347e-05/0.7057, allocations: 81.11 kB / 1.38 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.7059, allocations: 123.1 kB / 1.38 GB, free: 10.49 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/0.7059, allocations: 29.7 kB / 1.38 GB, free: 10.45 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.709e-05/0.706, allocations: 100.1 kB / 1.38 GB, free: 10.35 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.751e-05/0.7061, allocations: 19.73 kB / 1.38 GB, free: 10.33 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.571e-06/0.7061, allocations: 0 / 1.38 GB, free: 10.33 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001558/0.7062, allocations: 318.8 kB / 1.381 GB, free: 10.01 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.545e-05/0.7063, allocations: 27.98 kB / 1.381 GB, free: 9.984 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.478e-05/0.7064, allocations: 45.7 kB / 1.381 GB, free: 9.934 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.555e-05/0.7065, allocations: 23.98 kB / 1.381 GB, free: 9.91 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.7065, allocations: 0 / 1.381 GB, free: 9.91 MB / 0.8855 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002279/0.7068, allocations: 97.5 kB / 1.381 GB, free: 9.809 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.698e-05/0.7068, allocations: 8.656 kB / 1.381 GB, free: 9.801 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.7068, allocations: 0 / 1.381 GB, free: 9.801 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.943e-05/0.7069, allocations: 11.94 kB / 1.381 GB, free: 9.789 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.707, allocations: 15.98 kB / 1.381 GB, free: 9.773 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.707, allocations: 0 / 1.381 GB, free: 9.773 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.961e-05/0.7071, allocations: 19.92 kB / 1.381 GB, free: 9.754 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.126e-06/0.7071, allocations: 0 / 1.381 GB, free: 9.754 MB / 0.8855 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.0001564/0.7073, allocations: 119.2 kB / 1.381 GB, free: 9.629 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.881e-05/0.7073, allocations: 7.906 kB / 1.381 GB, free: 9.621 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.867e-05/0.7074, allocations: 8.25 kB / 1.381 GB, free: 9.613 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.7074, allocations: 7.953 kB / 1.381 GB, free: 9.605 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.7074, allocations: 0 / 1.381 GB, free: 9.605 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.7074, allocations: 0 / 1.381 GB, free: 9.605 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002159/0.7076, allocations: 189.6 kB / 1.381 GB, free: 9.371 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.7076, allocations: 4 kB / 1.381 GB, free: 9.367 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.833e-05/0.7077, allocations: 19.92 kB / 1.381 GB, free: 9.348 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.7077, allocations: 0 / 1.381 GB, free: 9.348 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.7077, allocations: 192 / 1.381 GB, free: 9.348 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.7078, allocations: 4 kB / 1.381 GB, free: 9.344 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.7078, allocations: 3.953 kB / 1.381 GB, free: 9.34 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002721/0.708, allocations: 187.4 kB / 1.381 GB, free: 9.141 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.367e-05/0.7081, allocations: 77.11 kB / 1.381 GB, free: 9.047 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.724e-05/0.7081, allocations: 7.984 kB / 1.381 GB, free: 9.039 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.7082, allocations: 12 kB / 1.381 GB, free: 9.027 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.842e-05/0.7083, allocations: 15.97 kB / 1.381 GB, free: 9.012 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.7083, allocations: 3.953 kB / 1.381 GB, free: 9.008 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.071e-05/0.7084, allocations: 96.95 kB / 1.382 GB, free: 8.914 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7084, allocations: 4 kB / 1.382 GB, free: 8.91 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002158/0.7086, allocations: 19.91 kB / 1.382 GB, free: 8.891 MB / 0.8855 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.00015/0.7088, allocations: 99.98 kB / 1.382 GB, free: 8.785 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000233/0.709, allocations: 63.95 kB / 1.382 GB, free: 8.723 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.7091, allocations: 4 kB / 1.382 GB, free: 8.719 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 8.559e-05/0.7091, allocations: 27.98 kB / 1.382 GB, free: 8.691 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002416/0.7094, allocations: 7.938 kB / 1.382 GB, free: 8.684 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004883/0.7099, allocations: 202.4 kB / 1.382 GB, free: 8.457 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.7103, allocations: 0.6965 MB / 1.383 GB, free: 7.734 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.548e-05/0.7103, allocations: 144 / 1.383 GB, free: 7.734 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.583e-05/0.7104, allocations: 15.44 kB / 1.383 GB, free: 7.719 MB / 0.8855 GB Notification: Performance of SimCode: time 2.4e-07/0.7104, allocations: 0 / 1.383 GB, free: 7.719 MB / 0.8855 GB Notification: Performance of Templates: time 0.003489/0.7139, allocations: 0.7152 MB / 1.383 GB, free: 7.02 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches