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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 108.2 kB / 16.37 MB, free: 6.008 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.001341/0.001341, allocations: 193.8 kB / 17.3 MB, free: 5.617 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.37/1.37, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.488/2.488, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 69.09 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3304, allocations: 153 MB / 1.027 GB, free: 2.027 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003095/0.3335, allocations: 1.679 MB / 1.028 GB, free: 344 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0007517/0.3343, allocations: 462.7 kB / 1.029 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.864e-05/0.3343, allocations: 0 / 1.029 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.702e-05/0.3344, allocations: 3.938 kB / 1.029 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.213e-05/0.3345, allocations: 23.78 kB / 1.029 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001796/0.3347, allocations: 23.97 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001216/0.3348, allocations: 75.72 kB / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.3349, allocations: 31.92 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.951e-05/0.335, allocations: 39.91 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.009e-05/0.3351, allocations: 35.84 kB / 1.029 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.117e-05/0.3352, allocations: 8 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.607e-05/0.3352, allocations: 8 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.647e-05/0.3352, allocations: 15.92 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.542e-05/0.3353, allocations: 35.8 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001289/0.3354, allocations: 83.62 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3354, allocations: 0 / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.784e-06/0.3354, allocations: 3.938 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.065e-06/0.3354, allocations: 4 kB / 1.029 GB, free: 15.5 MB / 0.8106 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.0005445/0.336, allocations: 395.1 kB / 1.03 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.336, allocations: 12.03 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.267e-05/0.3361, allocations: 12.83 kB / 1.03 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/0.3362, allocations: 176.2 kB / 1.03 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.3362, allocations: 8.375 kB / 1.03 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.311e-05/0.3363, allocations: 384 / 1.03 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000215/0.3365, allocations: 99.44 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.3365, allocations: 0 / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.3365, allocations: 4 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.3365, allocations: 0 / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001616/0.3367, allocations: 51.95 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004715/0.3372, allocations: 324.6 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001328/0.3373, allocations: 50.56 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.23e-05/0.3374, allocations: 28.92 kB / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.3374, allocations: 4 kB / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.3375, allocations: 34.56 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.093e-06/0.3375, allocations: 4 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0003165/0.3378, allocations: 101.6 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.38e-05/0.3379, allocations: 81.11 kB / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.338, allocations: 129.2 kB / 1.031 GB, free: 13.81 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.338, allocations: 29.7 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.456e-05/0.3381, allocations: 92.14 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.205e-05/0.3381, allocations: 19.73 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.889e-05/0.3381, allocations: 21.72 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.3383, allocations: 326.8 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.573e-05/0.3383, allocations: 19.98 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.26e-05/0.3384, allocations: 41.7 kB / 1.031 GB, free: 13.24 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001288/0.3386, allocations: 52.77 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3386, allocations: 4.031 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001794/0.3388, allocations: 81.58 kB / 1.031 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.3388, allocations: 4 kB / 1.031 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.3388, allocations: 3.984 kB / 1.031 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.3388, allocations: 4 kB / 1.031 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.3389, allocations: 7.938 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.3389, allocations: 0 / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.444e-05/0.339, allocations: 15.92 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.339, allocations: 11.94 kB / 1.031 GB, free: 13.05 MB / 0.8106 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.313e-05/0.3391, allocations: 121.8 kB / 1.031 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.942e-05/0.3392, allocations: 11.84 kB / 1.031 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.359e-05/0.3392, allocations: 8.25 kB / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.3392, allocations: 0 / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3392, allocations: 0 / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3392, allocations: 3.938 kB / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001792/0.3394, allocations: 185.6 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.3394, allocations: 0 / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.127e-05/0.3395, allocations: 15.98 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3395, allocations: 0 / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.677e-06/0.3395, allocations: 0 / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3395, allocations: 0 / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3395, allocations: 192 / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002178/0.3397, allocations: 179.4 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.834e-05/0.3398, allocations: 93.02 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.063e-05/0.3398, allocations: 4 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.3399, allocations: 11.98 kB / 1.032 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.736e-05/0.34, allocations: 11.92 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.34, allocations: 7.938 kB / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.32e-05/0.3401, allocations: 99.25 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3401, allocations: 0 / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002287/0.3403, allocations: 19.94 kB / 1.032 GB, free: 12.19 MB / 0.8106 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.0001087/0.3404, allocations: 103.2 kB / 1.032 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002381/0.3407, allocations: 47.97 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3407, allocations: 0 / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 7.922e-05/0.3408, allocations: 32.14 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.341, allocations: 8 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000416/0.3415, allocations: 171.3 kB / 1.032 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.3417, allocations: 0.6925 MB / 1.033 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.178e-05/0.3418, allocations: 7.984 kB / 1.033 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.557e-05/0.3418, allocations: 7.438 kB / 1.033 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.3418, allocations: 0 / 1.033 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of Templates: time 0.003038/0.3449, allocations: 0.8789 MB / 1.034 GB, free: 10.2 MB / 0.8106 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 -s gbode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches