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.001052/0.001052, allocations: 97.78 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.001557/0.001557, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.404/1.404, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.693/2.693, allocations: 462.7 MB / 0.7371 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004091/0.0004091, allocations: 9.219 kB / 0.9034 GB, free: 36.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.321, allocations: 159.6 MB / 1.059 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001843/0.3229, allocations: 1.387 MB / 1.061 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006873/0.3236, allocations: 442.9 kB / 1.061 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.307e-05/0.3236, allocations: 3.938 kB / 1.061 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.963e-05/0.3236, allocations: 3.938 kB / 1.061 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.455e-05/0.3237, allocations: 19.86 kB / 1.061 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001709/0.3239, allocations: 27.97 kB / 1.061 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.947e-05/0.324, allocations: 75.72 kB / 1.061 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.3242, allocations: 23.97 kB / 1.061 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.898e-05/0.3243, allocations: 31.86 kB / 1.061 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.432e-05/0.3243, allocations: 31.8 kB / 1.061 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.713e-05/0.3244, allocations: 0 / 1.061 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.451e-05/0.3244, allocations: 4 kB / 1.061 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.938e-05/0.3244, allocations: 7.922 kB / 1.061 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.788e-05/0.3245, allocations: 61.48 kB / 1.061 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.86e-05/0.3246, allocations: 60.11 kB / 1.061 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3246, allocations: 0 / 1.061 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.864e-06/0.3246, allocations: 0 / 1.061 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.037e-06/0.3246, allocations: 0 / 1.061 GB, free: 2.77 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.0004869/0.3251, allocations: 384.3 kB / 1.062 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.3251, allocations: 15.97 kB / 1.062 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.028e-05/0.3252, allocations: 8.844 kB / 1.062 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001422/0.3253, allocations: 180.2 kB / 1.062 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.3253, allocations: 8.375 kB / 1.062 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.3254, allocations: 384 / 1.062 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002196/0.3256, allocations: 99.69 kB / 1.062 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.3256, allocations: 0 / 1.062 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.963e-05/0.3256, allocations: 7.984 kB / 1.062 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.3256, allocations: 0 / 1.062 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001753/0.3258, allocations: 59.91 kB / 1.062 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005107/0.3263, allocations: 328.7 kB / 1.062 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001463/0.3265, allocations: 62.59 kB / 1.063 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.48e-05/0.3266, allocations: 28.94 kB / 1.063 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.767e-05/0.3266, allocations: 0 / 1.063 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.3267, allocations: 34.56 kB / 1.063 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 7.51e-07/0.3267, allocations: 0 / 1.063 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0003689/0.327, allocations: 117.5 kB / 1.063 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.3271, allocations: 81.05 kB / 1.063 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.3272, allocations: 140.4 kB / 1.063 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.3272, allocations: 29.7 kB / 1.063 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.483e-05/0.3273, allocations: 100 kB / 1.063 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.449e-05/0.3273, allocations: 11.84 kB / 1.063 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.826e-05/0.3274, allocations: 13.72 kB / 1.063 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.3275, allocations: 322.8 kB / 1.063 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.438e-05/0.3276, allocations: 27.98 kB / 1.063 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.348e-05/0.3277, allocations: 49.64 kB / 1.063 GB, free: 480 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001487/0.3279, allocations: 56.95 kB / 1.064 GB, free: 420 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3279, allocations: 0 / 1.064 GB, free: 420 kB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001971/0.3281, allocations: 101.5 kB / 1.064 GB, free: 312 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.3281, allocations: 8 kB / 1.064 GB, free: 304 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3281, allocations: 0 / 1.064 GB, free: 304 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.3281, allocations: 0 / 1.064 GB, free: 304 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.3282, allocations: 11.98 kB / 1.064 GB, free: 292 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3282, allocations: 0 / 1.064 GB, free: 292 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.347e-05/0.3283, allocations: 19.98 kB / 1.064 GB, free: 272 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.397e-06/0.3284, allocations: 3.938 kB / 1.064 GB, free: 268 kB / 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.025e-05/0.3284, allocations: 113.8 kB / 1.064 GB, free: 144 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.185e-05/0.3285, allocations: 7.906 kB / 1.064 GB, free: 136 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.509e-05/0.3285, allocations: 16.23 kB / 1.064 GB, free: 116 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.3285, allocations: 0 / 1.064 GB, free: 116 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3285, allocations: 0 / 1.064 GB, free: 116 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.3285, allocations: 0 / 1.064 GB, free: 116 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002031/0.3288, allocations: 197.6 kB / 1.064 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.3288, allocations: 0 / 1.064 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.221e-05/0.3288, allocations: 11.98 kB / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.3289, allocations: 0 / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.3289, allocations: 0 / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.3289, allocations: 4 kB / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3289, allocations: 0 / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002346/0.3291, allocations: 191.3 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.991e-05/0.3292, allocations: 85.02 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.3292, allocations: 0 / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.3293, allocations: 15.98 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.665e-05/0.3294, allocations: 11.98 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.3294, allocations: 12 kB / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.722e-05/0.3294, allocations: 107.2 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3295, allocations: 0 / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002193/0.3297, allocations: 15.94 kB / 1.064 GB, free: 15.39 MB / 0.8262 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.0001179/0.3298, allocations: 99.48 kB / 1.065 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002123/0.33, allocations: 63.91 kB / 1.065 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.33, allocations: 0 / 1.065 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.706e-05/0.3301, allocations: 35.97 kB / 1.065 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.3304, allocations: 7.984 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003955/0.3308, allocations: 228.3 kB / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002517/0.3311, allocations: 0.7003 MB / 1.066 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.991e-05/0.3311, allocations: 11.38 kB / 1.066 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.3311, allocations: 0 / 1.066 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of Templates: time 0.002417/0.3336, allocations: 0.9835 MB / 1.066 GB, free: 13.21 MB / 0.8262 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","/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