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.005655/0.005655, allocations: 102.7 kB / 15.73 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.001118/0.001118, allocations: 191.8 kB / 16.67 MB, free: 6.379 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.736/2.736, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 64.11 kB / 1.054 GB, free: 7.195 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3705/0.3719, allocations: 157.4 MB / 1.208 GB, free: 9.684 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003486/0.3754, allocations: 1.661 MB / 1.209 GB, free: 8.004 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009505/0.3764, allocations: 451.3 kB / 1.21 GB, free: 7.559 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.381e-05/0.3765, allocations: 3.938 kB / 1.21 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.925e-05/0.3765, allocations: 7.875 kB / 1.21 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.691e-05/0.3767, allocations: 15.86 kB / 1.21 GB, free: 7.531 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002122/0.3769, allocations: 31.91 kB / 1.21 GB, free: 7.5 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001397/0.377, allocations: 79.77 kB / 1.21 GB, free: 7.422 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.3772, allocations: 23.98 kB / 1.21 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.3773, allocations: 35.8 kB / 1.21 GB, free: 7.363 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.514e-05/0.3774, allocations: 43.83 kB / 1.21 GB, free: 7.32 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.424e-05/0.3774, allocations: 8 kB / 1.21 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.696e-05/0.3775, allocations: 8 kB / 1.21 GB, free: 7.305 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.414e-05/0.3775, allocations: 15.92 kB / 1.21 GB, free: 7.289 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.347e-05/0.3775, allocations: 39.8 kB / 1.21 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000162/0.3777, allocations: 83.69 kB / 1.21 GB, free: 7.168 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.3777, allocations: 0 / 1.21 GB, free: 7.168 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3777, allocations: 0 / 1.21 GB, free: 7.168 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.3777, allocations: 0 / 1.21 GB, free: 7.168 MB / 0.9669 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.0006176/0.3784, allocations: 387.1 kB / 1.211 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.3784, allocations: 16.61 kB / 1.211 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.703e-05/0.3785, allocations: 8.844 kB / 1.211 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001745/0.3787, allocations: 184.1 kB / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.3787, allocations: 4.375 kB / 1.211 GB, free: 6.496 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.746e-05/0.3787, allocations: 8.359 kB / 1.211 GB, free: 6.488 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002529/0.379, allocations: 95.62 kB / 1.211 GB, free: 6.383 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.379, allocations: 0 / 1.211 GB, free: 6.383 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.975e-05/0.379, allocations: 4 kB / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.379, allocations: 0 / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.3792, allocations: 59.89 kB / 1.211 GB, free: 6.32 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005723/0.3798, allocations: 320.7 kB / 1.211 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001539/0.3799, allocations: 54.59 kB / 1.211 GB, free: 5.895 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.006e-05/0.38, allocations: 24.94 kB / 1.211 GB, free: 5.867 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.3801, allocations: 4 kB / 1.211 GB, free: 5.863 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.602e-05/0.3801, allocations: 38.56 kB / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=4): time 1.262e-06/0.3801, allocations: 0 / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4): time 0.000374/0.3805, allocations: 97.55 kB / 1.211 GB, free: 5.715 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.957e-05/0.3806, allocations: 81.11 kB / 1.211 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.3807, allocations: 136.7 kB / 1.212 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.3807, allocations: 33.7 kB / 1.212 GB, free: 5.434 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.863e-05/0.3808, allocations: 100 kB / 1.212 GB, free: 5.332 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.443e-05/0.3808, allocations: 15.83 kB / 1.212 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.269e-05/0.3809, allocations: 17.72 kB / 1.212 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.381, allocations: 326.8 kB / 1.212 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.105e-05/0.3811, allocations: 23.98 kB / 1.212 GB, free: 4.941 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.472e-05/0.3812, allocations: 41.7 kB / 1.212 GB, free: 4.895 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001534/0.3814, allocations: 48.83 kB / 1.212 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3814, allocations: 0 / 1.212 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002019/0.3816, allocations: 81.58 kB / 1.212 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.3816, allocations: 7.984 kB / 1.212 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.3816, allocations: 3.938 kB / 1.212 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.3817, allocations: 4 kB / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.3818, allocations: 8.031 kB / 1.212 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.3818, allocations: 0 / 1.212 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.621e-05/0.3819, allocations: 11.98 kB / 1.212 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.248e-05/0.3819, allocations: 3.938 kB / 1.212 GB, free: 4.719 MB / 0.9669 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.0001081/0.382, allocations: 125.8 kB / 1.212 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.307e-05/0.382, allocations: 3.906 kB / 1.212 GB, free: 4.582 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.239e-05/0.3821, allocations: 16.19 kB / 1.212 GB, free: 4.562 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.3821, allocations: 0 / 1.212 GB, free: 4.562 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3821, allocations: 4 kB / 1.212 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3821, allocations: 3.938 kB / 1.212 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002005/0.3823, allocations: 189.6 kB / 1.213 GB, free: 4.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3823, allocations: 0 / 1.213 GB, free: 4.32 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.063e-05/0.3824, allocations: 11.98 kB / 1.213 GB, free: 4.309 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3824, allocations: 0 / 1.213 GB, free: 4.309 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.3824, allocations: 192 / 1.213 GB, free: 4.309 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.3824, allocations: 4 kB / 1.213 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3824, allocations: 0 / 1.213 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002518/0.3827, allocations: 187.5 kB / 1.213 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.879e-05/0.3827, allocations: 89.06 kB / 1.213 GB, free: 4 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.114e-05/0.3828, allocations: 3.984 kB / 1.213 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.3829, allocations: 11.98 kB / 1.213 GB, free: 3.984 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.762e-05/0.3829, allocations: 7.984 kB / 1.213 GB, free: 3.977 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-06/0.383, allocations: 4 kB / 1.213 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.452e-05/0.383, allocations: 103.2 kB / 1.213 GB, free: 3.871 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.383, allocations: 4 kB / 1.213 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002301/0.3833, allocations: 19.94 kB / 1.213 GB, free: 3.848 MB / 0.9669 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.0001216/0.3834, allocations: 99.25 kB / 1.213 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002804/0.3837, allocations: 51.91 kB / 1.213 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3837, allocations: 0 / 1.213 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 8.548e-05/0.3838, allocations: 27.97 kB / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002943/0.3841, allocations: 14.06 kB / 1.213 GB, free: 3.652 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004404/0.3845, allocations: 187.1 kB / 1.213 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002888/0.3848, allocations: 0.6885 MB / 1.214 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.677e-05/0.3849, allocations: 0 / 1.214 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.924e-05/0.3849, allocations: 19.36 kB / 1.214 GB, free: 2.711 MB / 0.9669 GB Notification: Performance of SimCode: time 2.51e-07/0.3849, allocations: 4 kB / 1.214 GB, free: 2.707 MB / 0.9669 GB Notification: Performance of Templates: time 0.003601/0.3886, allocations: 0.8978 MB / 1.215 GB, free: 1.828 MB / 0.9669 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