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.001407/0.001407, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001504/0.001504, allocations: 224.4 kB / 23 MB, free: 4.914 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.466/1.466, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.204/3.204, allocations: 0.4892 GB / 0.7951 GB, free: 35.51 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.002048/0.002048, allocations: 69.91 kB / 1.154 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3669, allocations: 176.1 MB / 1.326 GB, free: 1.895 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003196/0.3701, allocations: 1.687 MB / 1.328 GB, free: 204 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00105/0.3712, allocations: 498.8 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.252e-05/0.3713, allocations: 0 / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.214e-05/0.3713, allocations: 11.86 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.998e-05/0.3714, allocations: 11.88 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002646/0.3717, allocations: 47.88 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001746/0.3718, allocations: 99.64 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.3719, allocations: 20.17 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001454/0.3721, allocations: 39.89 kB / 1.329 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.525e-05/0.3722, allocations: 39.78 kB / 1.329 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.225e-05/0.3722, allocations: 8 kB / 1.329 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.955e-05/0.3723, allocations: 8 kB / 1.329 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.77e-05/0.3723, allocations: 19.92 kB / 1.329 GB, free: 15.4 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.774e-05/0.3723, allocations: 23.88 kB / 1.329 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001907/0.3725, allocations: 91.56 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3725, allocations: 0 / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3725, allocations: 8 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.72e-06/0.3725, allocations: 0 / 1.329 GB, free: 15.28 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.0006001/0.3731, allocations: 325.9 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.3732, allocations: 8.031 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002329/0.3734, allocations: 28.86 kB / 1.329 GB, free: 14.9 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002656/0.3737, allocations: 134.3 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.3737, allocations: 8.359 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.698e-05/0.3737, allocations: 8.375 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002489/0.3739, allocations: 121.3 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.3739, allocations: 4 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/0.374, allocations: 3.984 kB / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.374, allocations: 0 / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001577/0.3741, allocations: 51.91 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004752/0.3746, allocations: 256.4 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001398/0.3747, allocations: 46.56 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.36e-05/0.3748, allocations: 32.94 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.3748, allocations: 0 / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.3749, allocations: 30.56 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.3749, allocations: 96 / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of matching and sorting (n=4): time 0.0003488/0.3752, allocations: 109.5 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.66e-05/0.3753, allocations: 77.11 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.3754, allocations: 135.9 kB / 1.33 GB, free: 13.77 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.282e-05/0.3754, allocations: 29.7 kB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.906e-05/0.3755, allocations: 104 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.461e-05/0.3756, allocations: 15.89 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.302e-05/0.3756, allocations: 21.7 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001638/0.3758, allocations: 322.8 kB / 1.331 GB, free: 13.27 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.828e-05/0.3758, allocations: 19.98 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.376, allocations: 67.39 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001468/0.3761, allocations: 60.86 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3761, allocations: 4 kB / 1.331 GB, free: 13.1 MB / 1.029 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002018/0.3763, allocations: 85.62 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.3763, allocations: 4 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.3763, allocations: 0 / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.3763, allocations: 0 / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.3764, allocations: 11.98 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.3765, allocations: 0 / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.882e-05/0.3765, allocations: 15.98 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-06/0.3765, allocations: 0 / 1.331 GB, free: 12.98 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.0001103/0.3766, allocations: 126.2 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.725e-05/0.3767, allocations: 7.953 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.834e-05/0.3767, allocations: 16.33 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3767, allocations: 0 / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3767, allocations: 0 / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.3767, allocations: 0 / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001735/0.3769, allocations: 133.2 kB / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3769, allocations: 0 / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.723e-05/0.377, allocations: 8 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.377, allocations: 4 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.377, allocations: 7.984 kB / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.377, allocations: 0 / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.377, allocations: 0 / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002535/0.3772, allocations: 179.6 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.754e-05/0.3773, allocations: 11.98 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.989e-05/0.3773, allocations: 3.938 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.3774, allocations: 11.98 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.34e-05/0.3774, allocations: 19.92 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.3774, allocations: 0 / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.841e-05/0.3775, allocations: 109 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3775, allocations: 0 / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002271/0.3778, allocations: 8 kB / 1.331 GB, free: 12.28 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.0001272/0.3779, allocations: 99.25 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002279/0.3781, allocations: 51.97 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3781, allocations: 0 / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.517e-05/0.3782, allocations: 39.91 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002498/0.3784, allocations: 14.89 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004474/0.3789, allocations: 201.9 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.398e-05/0.379, allocations: 75.89 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.704e-05/0.379, allocations: 15.42 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of SimCode: time 2.61e-07/0.379, allocations: 0 / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of Templates: time 0.002826/0.3819, allocations: 1.068 MB / 1.333 GB, free: 10.67 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/jenkins1/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: 11.26192172570154]