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.001206/0.001206, allocations: 110.6 kB / 16.41 MB, free: 6.492 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.001215/0.001215, allocations: 187 kB / 17.34 MB, free: 5.766 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.323/1.323, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.556/2.556, allocations: 461.9 MB / 0.7355 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001535, allocations: 60.12 kB / 1.055 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9261/0.9277, allocations: 157.4 MB / 1.208 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003064/0.9308, allocations: 1.674 MB / 1.21 GB, free: 12 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007355/0.9316, allocations: 450.9 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.399e-05/0.9316, allocations: 0 / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.602e-05/0.9317, allocations: 7.875 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.472e-05/0.9318, allocations: 23.84 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001841/0.932, allocations: 27.91 kB / 1.211 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001263/0.9321, allocations: 83.72 kB / 1.211 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.9322, allocations: 19.98 kB / 1.211 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.9324, allocations: 39.84 kB / 1.211 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.502e-05/0.9324, allocations: 35.84 kB / 1.211 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.444e-05/0.9325, allocations: 8 kB / 1.211 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.835e-05/0.9325, allocations: 8 kB / 1.211 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.32e-05/0.9325, allocations: 15.92 kB / 1.211 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.806e-05/0.9326, allocations: 43.78 kB / 1.211 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.9327, allocations: 83.5 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.9327, allocations: 0 / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.024e-06/0.9327, allocations: 0 / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.663e-06/0.9328, allocations: 0 / 1.211 GB, free: 11.16 MB / 0.9356 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.0005362/0.9333, allocations: 397 kB / 1.211 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.9333, allocations: 12.03 kB / 1.211 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.948e-05/0.9334, allocations: 8.844 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.9335, allocations: 176.2 kB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.377e-05/0.9336, allocations: 4.375 kB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.722e-05/0.9336, allocations: 384 / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002169/0.9338, allocations: 103.6 kB / 1.212 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.9338, allocations: 4 kB / 1.212 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.9338, allocations: 0 / 1.212 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.9339, allocations: 0 / 1.212 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001537/0.934, allocations: 51.91 kB / 1.212 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005023/0.9345, allocations: 328.6 kB / 1.212 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001493/0.9347, allocations: 54.5 kB / 1.212 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.281e-05/0.9348, allocations: 28.94 kB / 1.212 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.9348, allocations: 4 kB / 1.212 GB, free: 9.859 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.9348, allocations: 34.59 kB / 1.212 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 2.545e-06/0.9348, allocations: 3.984 kB / 1.212 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of matching and sorting (n=4): time 0.000342/0.9352, allocations: 105.5 kB / 1.212 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.9e-05/0.9353, allocations: 77.11 kB / 1.212 GB, free: 9.609 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.9354, allocations: 136.6 kB / 1.212 GB, free: 9.465 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.9354, allocations: 29.7 kB / 1.212 GB, free: 9.43 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.469e-05/0.9355, allocations: 100 kB / 1.212 GB, free: 9.328 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.811e-05/0.9355, allocations: 3.906 kB / 1.212 GB, free: 9.324 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.102e-05/0.9355, allocations: 17.72 kB / 1.212 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.9356, allocations: 326.8 kB / 1.213 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.844e-05/0.9357, allocations: 27.98 kB / 1.213 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.86e-05/0.9358, allocations: 37.7 kB / 1.213 GB, free: 8.902 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.936, allocations: 48.77 kB / 1.213 GB, free: 8.852 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.936, allocations: 0 / 1.213 GB, free: 8.852 MB / 0.9356 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001915/0.9362, allocations: 89.59 kB / 1.213 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.9362, allocations: 8 kB / 1.213 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.9362, allocations: 4 kB / 1.213 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.9362, allocations: 0 / 1.213 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.9363, allocations: 7.984 kB / 1.213 GB, free: 8.738 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.9364, allocations: 4 kB / 1.213 GB, free: 8.734 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.697e-05/0.9364, allocations: 7.938 kB / 1.213 GB, free: 8.727 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.9365, allocations: 12.11 kB / 1.213 GB, free: 8.715 MB / 0.9356 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.658e-05/0.9366, allocations: 127.3 kB / 1.213 GB, free: 8.582 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/0.9366, allocations: 7.906 kB / 1.213 GB, free: 8.574 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.677e-05/0.9366, allocations: 8.25 kB / 1.213 GB, free: 8.559 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.9366, allocations: 0 / 1.213 GB, free: 8.559 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.9367, allocations: 0 / 1.213 GB, free: 8.559 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.9367, allocations: 4 kB / 1.213 GB, free: 8.555 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001816/0.9368, allocations: 193.5 kB / 1.213 GB, free: 8.316 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.9369, allocations: 0 / 1.213 GB, free: 8.316 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.176e-05/0.9369, allocations: 11.98 kB / 1.213 GB, free: 8.305 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.9369, allocations: 0 / 1.213 GB, free: 8.305 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.937, allocations: 0 / 1.213 GB, free: 8.305 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.937, allocations: 7.938 kB / 1.213 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.937, allocations: 0 / 1.213 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002216/0.9372, allocations: 179.4 kB / 1.214 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.537e-05/0.9372, allocations: 88.95 kB / 1.214 GB, free: 8 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.9373, allocations: 7.922 kB / 1.214 GB, free: 7.992 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.9374, allocations: 8 kB / 1.214 GB, free: 7.984 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.739e-05/0.9374, allocations: 15.98 kB / 1.214 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.9375, allocations: 3.984 kB / 1.214 GB, free: 7.965 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.042e-05/0.9375, allocations: 103.2 kB / 1.214 GB, free: 7.863 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9375, allocations: 0 / 1.214 GB, free: 7.863 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002291/0.9378, allocations: 12 kB / 1.214 GB, free: 7.852 MB / 0.9356 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.0001073/0.9379, allocations: 99.25 kB / 1.214 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002157/0.9381, allocations: 55.95 kB / 1.214 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.9381, allocations: 0 / 1.214 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.052e-05/0.9382, allocations: 31.92 kB / 1.214 GB, free: 7.66 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003086/0.9385, allocations: 5.875 kB / 1.214 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004037/0.9389, allocations: 203 kB / 1.214 GB, free: 7.43 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.9392, allocations: 0.6923 MB / 1.215 GB, free: 6.711 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.28e-05/0.9392, allocations: 19.42 kB / 1.215 GB, free: 6.691 MB / 0.9356 GB Notification: Performance of SimCode: time 2.31e-07/0.9392, allocations: 0 / 1.215 GB, free: 6.691 MB / 0.9356 GB Notification: Performance of Templates: time 0.002463/0.9417, allocations: 1.005 MB / 1.216 GB, free: 5.699 MB / 0.9356 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