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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00115/0.00115, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.01119/0.0112, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.53/1.53, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.954/2.954, allocations: 462.6 MB / 0.7364 GB, free: 248 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003974/0.0003976, allocations: 11.7 kB / 0.9028 GB, free: 36.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4014/0.4019, allocations: 159.6 MB / 1.059 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002164/0.4041, allocations: 1.395 MB / 1.06 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007385/0.4048, allocations: 446.8 kB / 1.06 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.806e-05/0.4049, allocations: 7.938 kB / 1.06 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.495e-05/0.4049, allocations: 3.938 kB / 1.06 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.363e-05/0.405, allocations: 7.875 kB / 1.06 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001834/0.4052, allocations: 27.95 kB / 1.061 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001145/0.4053, allocations: 71.78 kB / 1.061 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001259/0.4055, allocations: 27.98 kB / 1.061 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001095/0.4056, allocations: 31.8 kB / 1.061 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.924e-05/0.4057, allocations: 27.84 kB / 1.061 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.986e-05/0.4057, allocations: 4 kB / 1.061 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.395e-05/0.4057, allocations: 0 / 1.061 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.506e-05/0.4058, allocations: 15.92 kB / 1.061 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.526e-05/0.4058, allocations: 57.5 kB / 1.061 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001246/0.406, allocations: 75.95 kB / 1.061 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.406, allocations: 7.938 kB / 1.061 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.114e-06/0.406, allocations: 0 / 1.061 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.406, allocations: 0 / 1.061 GB, free: 3.211 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.0005427/0.4065, allocations: 379.3 kB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.4066, allocations: 8.031 kB / 1.061 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.093e-05/0.4066, allocations: 8.844 kB / 1.061 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001564/0.4068, allocations: 184.2 kB / 1.061 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.4068, allocations: 8.375 kB / 1.061 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.744e-05/0.4068, allocations: 4.375 kB / 1.061 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002328/0.4071, allocations: 95.69 kB / 1.061 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.4071, allocations: 0 / 1.061 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.4071, allocations: 0 / 1.061 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.4071, allocations: 0 / 1.061 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001659/0.4073, allocations: 63.91 kB / 1.062 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005264/0.4078, allocations: 332.7 kB / 1.062 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001592/0.408, allocations: 58.58 kB / 1.062 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.216e-05/0.4081, allocations: 36.88 kB / 1.062 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.4081, allocations: 4 kB / 1.062 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/0.4082, allocations: 34.56 kB / 1.062 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.4082, allocations: 0 / 1.062 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0004021/0.4086, allocations: 109.6 kB / 1.062 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.129e-05/0.4087, allocations: 85.09 kB / 1.062 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001331/0.4088, allocations: 124.5 kB / 1.062 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.344e-05/0.4089, allocations: 33.64 kB / 1.062 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.293e-05/0.4089, allocations: 100 kB / 1.062 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.235e-05/0.409, allocations: 11.84 kB / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.427e-05/0.409, allocations: 13.7 kB / 1.062 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001623/0.4092, allocations: 322.8 kB / 1.063 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.953e-05/0.4093, allocations: 31.98 kB / 1.063 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.4094, allocations: 49.69 kB / 1.063 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001468/0.4095, allocations: 48.88 kB / 1.063 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4095, allocations: 0 / 1.063 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002143/0.4098, allocations: 101.6 kB / 1.063 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.4098, allocations: 4 kB / 1.063 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.4098, allocations: 0 / 1.063 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.4098, allocations: 7.875 kB / 1.063 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.4099, allocations: 15.98 kB / 1.063 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.779e-06/0.41, allocations: 4 kB / 1.063 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.447e-05/0.4101, allocations: 11.98 kB / 1.063 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.4101, allocations: 7.938 kB / 1.063 GB, free: 0.7148 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 0.000111/0.4102, allocations: 113.8 kB / 1.063 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.951e-05/0.4102, allocations: 7.906 kB / 1.063 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.621e-05/0.4103, allocations: 12.25 kB / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-06/0.4103, allocations: 192 / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.4103, allocations: 0 / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.679e-05/0.4103, allocations: 11.97 kB / 1.063 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002245/0.4105, allocations: 185.6 kB / 1.063 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4105, allocations: 0 / 1.063 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.954e-05/0.4106, allocations: 11.98 kB / 1.063 GB, free: 324 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.4106, allocations: 4 kB / 1.063 GB, free: 320 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.4107, allocations: 0 / 1.063 GB, free: 320 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.4107, allocations: 0 / 1.063 GB, free: 320 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.4107, allocations: 7.938 kB / 1.063 GB, free: 312 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000271/0.4109, allocations: 191.3 kB / 1.064 GB, free: 104 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.587e-05/0.411, allocations: 85 kB / 1.064 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.065e-05/0.4111, allocations: 8.078 kB / 1.064 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.4112, allocations: 16.17 kB / 1.064 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.323e-05/0.4113, allocations: 11.98 kB / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.4113, allocations: 4 kB / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.76e-05/0.4114, allocations: 103.2 kB / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4114, allocations: 0 / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002252/0.4116, allocations: 15.94 kB / 1.064 GB, free: 15.84 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.0001564/0.4118, allocations: 99.25 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002452/0.412, allocations: 67.89 kB / 1.064 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.412, allocations: 0 / 1.064 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.115e-05/0.4121, allocations: 31.98 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003245/0.4125, allocations: 5.688 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004516/0.4129, allocations: 198.6 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000352/0.4133, allocations: 0.7004 MB / 1.065 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.979e-05/0.4133, allocations: 0 / 1.065 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.268e-05/0.4134, allocations: 15.42 kB / 1.065 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of SimCode: time 1.45e-05/0.4134, allocations: 0 / 1.065 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of Templates: time 0.003457/0.4169, allocations: 0.7473 MB / 1.066 GB, free: 13.95 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/jenkins/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