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.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.001598/0.001598, 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.001803/0.001803, allocations: 219.5 kB / 22.99 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.459/1.459, allocations: 230.6 MB / 256.8 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.428/3.428, allocations: 0.5107 GB / 0.8166 GB, free: 17.99 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.002074/0.002074, allocations: 68.25 kB / 1.187 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3827/0.3848, allocations: 181.9 MB / 1.365 GB, free: 13.69 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003404/0.3882, allocations: 1.679 MB / 1.366 GB, free: 11.99 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001129/0.3893, allocations: 495.9 kB / 1.367 GB, free: 11.5 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.394e-05/0.3894, allocations: 11.88 kB / 1.367 GB, free: 11.49 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.478e-05/0.3894, allocations: 3.938 kB / 1.367 GB, free: 11.49 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001073/0.3895, allocations: 23.78 kB / 1.367 GB, free: 11.46 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000294/0.3898, allocations: 51.88 kB / 1.367 GB, free: 11.41 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001729/0.39, allocations: 83.72 kB / 1.367 GB, free: 11.33 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.3901, allocations: 20.16 kB / 1.367 GB, free: 11.31 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001839/0.3903, allocations: 43.8 kB / 1.367 GB, free: 11.27 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 9.313e-05/0.3904, allocations: 39.83 kB / 1.367 GB, free: 11.23 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.931e-05/0.3904, allocations: 8 kB / 1.367 GB, free: 11.22 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.764e-05/0.3905, allocations: 12 kB / 1.367 GB, free: 11.21 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.425e-05/0.3905, allocations: 15.92 kB / 1.367 GB, free: 11.19 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.46e-05/0.3906, allocations: 27.86 kB / 1.367 GB, free: 11.16 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001909/0.3908, allocations: 91.62 kB / 1.367 GB, free: 11.07 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.3908, allocations: 0 / 1.367 GB, free: 11.07 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3908, allocations: 0 / 1.367 GB, free: 11.07 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.243e-06/0.3908, allocations: 0 / 1.367 GB, free: 11.07 MB / 1.061 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.0005915/0.3914, allocations: 322 kB / 1.367 GB, free: 10.73 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.3914, allocations: 12.03 kB / 1.367 GB, free: 10.72 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002413/0.3916, allocations: 24.88 kB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002859/0.3919, allocations: 146.3 kB / 1.368 GB, free: 10.53 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.3919, allocations: 384 / 1.368 GB, free: 10.53 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.59e-05/0.392, allocations: 8.375 kB / 1.368 GB, free: 10.52 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002455/0.3922, allocations: 113.4 kB / 1.368 GB, free: 10.39 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.3922, allocations: 0 / 1.368 GB, free: 10.39 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.357e-05/0.3922, allocations: 7.938 kB / 1.368 GB, free: 10.38 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.3922, allocations: 8 kB / 1.368 GB, free: 10.38 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000165/0.3924, allocations: 43.97 kB / 1.368 GB, free: 10.33 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004831/0.3929, allocations: 256.4 kB / 1.368 GB, free: 10.05 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001509/0.393, allocations: 50.55 kB / 1.368 GB, free: 9.992 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.246e-05/0.3931, allocations: 28.94 kB / 1.368 GB, free: 9.961 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.3931, allocations: 0 / 1.368 GB, free: 9.961 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.3932, allocations: 38.56 kB / 1.368 GB, free: 9.914 MB / 1.061 GB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.3932, allocations: 0 / 1.368 GB, free: 9.914 MB / 1.061 GB Notification: Performance of matching and sorting (n=4): time 0.0003641/0.3935, allocations: 105.6 kB / 1.368 GB, free: 9.805 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/0.3936, allocations: 81.05 kB / 1.368 GB, free: 9.707 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.3937, allocations: 139.1 kB / 1.368 GB, free: 9.562 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.249e-05/0.3937, allocations: 29.64 kB / 1.368 GB, free: 9.527 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.142e-05/0.3938, allocations: 104 kB / 1.369 GB, free: 9.422 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.046e-05/0.3939, allocations: 11.95 kB / 1.369 GB, free: 9.41 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.458e-05/0.3939, allocations: 17.72 kB / 1.369 GB, free: 9.387 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.394, allocations: 326.8 kB / 1.369 GB, free: 9.059 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.674e-05/0.3941, allocations: 23.98 kB / 1.369 GB, free: 9.035 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001039/0.3942, allocations: 67.41 kB / 1.369 GB, free: 8.957 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001502/0.3944, allocations: 48.83 kB / 1.369 GB, free: 8.906 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3944, allocations: 0 / 1.369 GB, free: 8.906 MB / 1.061 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000208/0.3946, allocations: 89.55 kB / 1.369 GB, free: 8.812 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.3946, allocations: 12.03 kB / 1.369 GB, free: 8.801 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.3946, allocations: 0 / 1.369 GB, free: 8.801 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.3946, allocations: 0 / 1.369 GB, free: 8.801 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.3947, allocations: 8 kB / 1.369 GB, free: 8.793 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.3947, allocations: 3.984 kB / 1.369 GB, free: 8.789 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.688e-05/0.3948, allocations: 7.953 kB / 1.369 GB, free: 8.781 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-06/0.3948, allocations: 7.984 kB / 1.369 GB, free: 8.773 MB / 1.061 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.0001091/0.3949, allocations: 122.9 kB / 1.369 GB, free: 8.645 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.217e-05/0.395, allocations: 7.953 kB / 1.369 GB, free: 8.637 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.861e-05/0.395, allocations: 16.34 kB / 1.369 GB, free: 8.609 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.395, allocations: 0 / 1.369 GB, free: 8.609 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.395, allocations: 192 / 1.369 GB, free: 8.609 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.395, allocations: 0 / 1.369 GB, free: 8.609 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000174/0.3952, allocations: 137.1 kB / 1.369 GB, free: 8.445 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3952, allocations: 0 / 1.369 GB, free: 8.445 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.195e-05/0.3953, allocations: 11.98 kB / 1.369 GB, free: 8.434 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.3953, allocations: 3.938 kB / 1.369 GB, free: 8.43 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.3953, allocations: 4 kB / 1.369 GB, free: 8.426 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.149e-06/0.3953, allocations: 4.188 kB / 1.369 GB, free: 8.422 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.3953, allocations: 4 kB / 1.369 GB, free: 8.418 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002565/0.3955, allocations: 183.4 kB / 1.37 GB, free: 8.223 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.729e-05/0.3955, allocations: 7.938 kB / 1.37 GB, free: 8.215 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.14e-05/0.3956, allocations: 4 kB / 1.37 GB, free: 8.211 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.3957, allocations: 7.984 kB / 1.37 GB, free: 8.203 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.132e-05/0.3957, allocations: 11.98 kB / 1.37 GB, free: 8.191 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-06/0.3957, allocations: 4 kB / 1.37 GB, free: 8.188 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.386e-05/0.3958, allocations: 105.4 kB / 1.37 GB, free: 8.086 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3958, allocations: 0 / 1.37 GB, free: 8.086 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002418/0.3961, allocations: 12 kB / 1.37 GB, free: 8.074 MB / 1.061 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.0001212/0.3962, allocations: 103.2 kB / 1.37 GB, free: 7.965 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000225/0.3964, allocations: 63.78 kB / 1.37 GB, free: 7.902 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3964, allocations: 0 / 1.37 GB, free: 7.902 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 8.225e-05/0.3965, allocations: 23.98 kB / 1.37 GB, free: 7.879 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002457/0.3967, allocations: 4 kB / 1.37 GB, free: 7.875 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004714/0.3972, allocations: 213.8 kB / 1.37 GB, free: 7.637 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.949e-05/0.3973, allocations: 78.84 kB / 1.37 GB, free: 7.539 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.147e-05/0.3973, allocations: 11.44 kB / 1.37 GB, free: 7.527 MB / 1.061 GB Notification: Performance of SimCode: time 7.72e-07/0.3973, allocations: 0 / 1.37 GB, free: 7.527 MB / 1.061 GB Notification: Performance of Templates: time 0.003097/0.4004, allocations: 1.076 MB / 1.371 GB, free: 6.461 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.40164015488699]