Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001825/0.001825, allocations: 210.8 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.468/1.468, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.238/3.238, allocations: 0.4892 GB / 0.7943 GB, free: 35.59 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002119/0.002119, allocations: 68.09 kB / 1.154 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3669/0.369, allocations: 176.1 MB / 1.326 GB, free: 1.855 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003862/0.3729, allocations: 1.692 MB / 1.327 GB, free: 160 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001161/0.3741, allocations: 498.8 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.39e-05/0.3742, allocations: 7.938 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.873e-05/0.3742, allocations: 3.938 kB / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.71e-05/0.3743, allocations: 19.78 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002764/0.3746, allocations: 43.89 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001732/0.3747, allocations: 87.77 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.3749, allocations: 24.09 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001736/0.375, allocations: 43.86 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.707e-05/0.3751, allocations: 39.77 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.739e-05/0.3751, allocations: 11.94 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.142e-05/0.3752, allocations: 11.98 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.529e-05/0.3752, allocations: 12 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.805e-05/0.3753, allocations: 31.8 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002149/0.3755, allocations: 87.69 kB / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3755, allocations: 0 / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.034e-06/0.3755, allocations: 0 / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.614e-06/0.3755, allocations: 0 / 1.328 GB, free: 15.24 MB / 1.029 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.0006849/0.3762, allocations: 329.9 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.3763, allocations: 12.03 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002731/0.3765, allocations: 24.88 kB / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003264/0.3769, allocations: 142.3 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.3769, allocations: 4.375 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.608e-05/0.3769, allocations: 4.375 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002938/0.3772, allocations: 117.4 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.3772, allocations: 7.938 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.3772, allocations: 0 / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.3772, allocations: 0 / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001727/0.3774, allocations: 51.95 kB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005246/0.3779, allocations: 260.4 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.3781, allocations: 46.56 kB / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.403e-05/0.3782, allocations: 28.94 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.3782, allocations: 0 / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.3782, allocations: 34.56 kB / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of pre-optimization done (n=4): time 9.21e-07/0.3782, allocations: 0 / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of matching and sorting (n=4): time 0.0003671/0.3786, allocations: 105.6 kB / 1.329 GB, free: 13.97 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.45e-05/0.3787, allocations: 77.11 kB / 1.329 GB, free: 13.88 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001401/0.3788, allocations: 139.3 kB / 1.329 GB, free: 13.73 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.743e-05/0.3788, allocations: 29.7 kB / 1.329 GB, free: 13.7 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.37e-05/0.3789, allocations: 104 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/0.3789, allocations: 15.91 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.525e-05/0.379, allocations: 17.72 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001705/0.3792, allocations: 322.8 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.3793, allocations: 23.92 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.3794, allocations: 63.41 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001508/0.3795, allocations: 48.83 kB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3795, allocations: 0 / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002438/0.3798, allocations: 101.6 kB / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.3798, allocations: 5.562 kB / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.3798, allocations: 384 / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.3798, allocations: 0 / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.3799, allocations: 15.98 kB / 1.33 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.3799, allocations: 0 / 1.33 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.543e-05/0.38, allocations: 15.97 kB / 1.33 GB, free: 12.94 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.38, allocations: 3.938 kB / 1.33 GB, free: 12.93 MB / 1.029 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.0001299/0.3802, allocations: 122.3 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.684e-05/0.3802, allocations: 11.95 kB / 1.33 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.173e-05/0.3802, allocations: 8.344 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.3802, allocations: 0 / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3802, allocations: 0 / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.505e-06/0.3802, allocations: 7.984 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001935/0.3804, allocations: 133.2 kB / 1.33 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3804, allocations: 0 / 1.33 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.941e-05/0.3805, allocations: 15.92 kB / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.3805, allocations: 0 / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.3805, allocations: 0 / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.3805, allocations: 7.984 kB / 1.33 GB, free: 12.58 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3805, allocations: 0 / 1.33 GB, free: 12.58 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003623/0.3809, allocations: 179.4 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.847e-05/0.3809, allocations: 7.953 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.187e-05/0.3809, allocations: 0 / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.3811, allocations: 15.98 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.572e-05/0.3811, allocations: 7.984 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-06/0.3811, allocations: 0 / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.024e-05/0.3812, allocations: 103.3 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3812, allocations: 4 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002527/0.3815, allocations: 12 kB / 1.331 GB, free: 12.24 MB / 1.029 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.0001402/0.3816, allocations: 108.7 kB / 1.331 GB, free: 12.13 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002333/0.3818, allocations: 51.91 kB / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3818, allocations: 4 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.739e-05/0.3819, allocations: 19.98 kB / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002709/0.3822, allocations: 11.98 kB / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004628/0.3827, allocations: 180.1 kB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.414e-05/0.3827, allocations: 79.83 kB / 1.331 GB, free: 11.74 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.505e-05/0.3828, allocations: 144 / 1.331 GB, free: 11.74 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.674e-05/0.3828, allocations: 19.42 kB / 1.331 GB, free: 11.72 MB / 1.029 GB Notification: Performance of SimCode: time 3.41e-07/0.3828, allocations: 0 / 1.331 GB, free: 11.72 MB / 1.029 GB Notification: Performance of Templates: time 0.003987/0.3868, allocations: 0.9771 MB / 1.332 GB, free: 10.76 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.963268931955099]