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.001596/0.001596, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.002132/0.002132, allocations: 219.2 kB / 23.01 MB, free: 4.605 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.432/1.432, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.257/3.257, allocations: 0.505 GB / 0.8108 GB, free: 22.02 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.002068/0.002068, allocations: 67 kB / 1.178 GB, free: 16.86 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4145/0.4165, allocations: 180.2 MB / 1.354 GB, free: 7.945 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003115/0.4196, allocations: 1.719 MB / 1.356 GB, free: 6.215 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001033/0.4207, allocations: 0.5265 MB / 1.356 GB, free: 5.684 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.145e-05/0.4208, allocations: 4 kB / 1.356 GB, free: 5.68 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.66e-05/0.4208, allocations: 7.875 kB / 1.356 GB, free: 5.672 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 9.438e-05/0.4209, allocations: 19.8 kB / 1.356 GB, free: 5.652 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002619/0.4211, allocations: 47.88 kB / 1.356 GB, free: 5.605 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000167/0.4213, allocations: 87.72 kB / 1.356 GB, free: 5.52 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.4214, allocations: 20.16 kB / 1.356 GB, free: 5.496 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.4216, allocations: 43.84 kB / 1.357 GB, free: 5.453 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 9.773e-05/0.4217, allocations: 39.78 kB / 1.357 GB, free: 5.414 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.393e-05/0.4217, allocations: 12 kB / 1.357 GB, free: 5.402 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.531e-05/0.4218, allocations: 8 kB / 1.357 GB, free: 5.395 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.693e-05/0.4218, allocations: 23.91 kB / 1.357 GB, free: 5.371 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.905e-05/0.4218, allocations: 35.8 kB / 1.357 GB, free: 5.336 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001929/0.422, allocations: 87.69 kB / 1.357 GB, free: 5.25 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.422, allocations: 0 / 1.357 GB, free: 5.25 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.743e-06/0.422, allocations: 0 / 1.357 GB, free: 5.25 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.4221, allocations: 0 / 1.357 GB, free: 5.25 MB / 1.045 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.0005938/0.4226, allocations: 325.9 kB / 1.357 GB, free: 4.902 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.4227, allocations: 15.97 kB / 1.357 GB, free: 4.887 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002357/0.4229, allocations: 24.88 kB / 1.357 GB, free: 4.863 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002561/0.4232, allocations: 142.3 kB / 1.357 GB, free: 4.699 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.4232, allocations: 4.375 kB / 1.357 GB, free: 4.695 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.4232, allocations: 4.375 kB / 1.357 GB, free: 4.691 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002249/0.4234, allocations: 99.62 kB / 1.357 GB, free: 4.582 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.4234, allocations: 0 / 1.357 GB, free: 4.582 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.4235, allocations: 4 kB / 1.357 GB, free: 4.578 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.4235, allocations: 0 / 1.357 GB, free: 4.578 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00016/0.4236, allocations: 51.91 kB / 1.357 GB, free: 4.527 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005033/0.4241, allocations: 295.8 kB / 1.358 GB, free: 4.195 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001409/0.4243, allocations: 54.59 kB / 1.358 GB, free: 4.133 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.801e-05/0.4243, allocations: 24.94 kB / 1.358 GB, free: 4.105 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.4244, allocations: 0 / 1.358 GB, free: 4.105 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/0.4244, allocations: 38.55 kB / 1.358 GB, free: 4.059 MB / 1.045 GB Notification: Performance of pre-optimization done (n=4): time 8.11e-07/0.4244, allocations: 0 / 1.358 GB, free: 4.059 MB / 1.045 GB Notification: Performance of matching and sorting (n=4): time 0.0003569/0.4248, allocations: 101.6 kB / 1.358 GB, free: 3.953 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.624e-05/0.4248, allocations: 85.05 kB / 1.358 GB, free: 3.852 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.4249, allocations: 135.3 kB / 1.358 GB, free: 3.711 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.326e-05/0.425, allocations: 29.7 kB / 1.358 GB, free: 3.676 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.454e-05/0.425, allocations: 100.1 kB / 1.358 GB, free: 3.574 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.102e-05/0.4251, allocations: 11.89 kB / 1.358 GB, free: 3.562 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.179e-05/0.4251, allocations: 17.72 kB / 1.358 GB, free: 3.539 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.4253, allocations: 330.8 kB / 1.359 GB, free: 3.207 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.95e-05/0.4253, allocations: 23.98 kB / 1.359 GB, free: 3.184 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.301e-05/0.4254, allocations: 37.7 kB / 1.359 GB, free: 3.141 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001353/0.4256, allocations: 44.83 kB / 1.359 GB, free: 3.094 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.4256, allocations: 0 / 1.359 GB, free: 3.094 MB / 1.045 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001945/0.4257, allocations: 93.59 kB / 1.359 GB, free: 2.996 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.4258, allocations: 8 kB / 1.359 GB, free: 2.988 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.4258, allocations: 3.984 kB / 1.359 GB, free: 2.984 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.4258, allocations: 0 / 1.359 GB, free: 2.984 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.4259, allocations: 11.98 kB / 1.359 GB, free: 2.973 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.4259, allocations: 0 / 1.359 GB, free: 2.973 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.551e-05/0.426, allocations: 15.92 kB / 1.359 GB, free: 2.957 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.426, allocations: 0 / 1.359 GB, free: 2.957 MB / 1.045 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.0001016/0.4261, allocations: 122.6 kB / 1.359 GB, free: 2.828 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.029e-05/0.4261, allocations: 7.953 kB / 1.359 GB, free: 2.82 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.548e-05/0.4261, allocations: 20.33 kB / 1.359 GB, free: 2.797 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.4261, allocations: 0 / 1.359 GB, free: 2.797 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.4262, allocations: 0 / 1.359 GB, free: 2.797 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.4262, allocations: 3.938 kB / 1.359 GB, free: 2.793 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001989/0.4264, allocations: 172.7 kB / 1.359 GB, free: 2.582 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4264, allocations: 0 / 1.359 GB, free: 2.582 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.211e-05/0.4264, allocations: 11.98 kB / 1.359 GB, free: 2.57 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.4264, allocations: 3.984 kB / 1.359 GB, free: 2.566 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.4264, allocations: 4 kB / 1.359 GB, free: 2.562 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.4264, allocations: 0 / 1.359 GB, free: 2.562 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.4264, allocations: 3.938 kB / 1.359 GB, free: 2.559 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000244/0.4267, allocations: 175.5 kB / 1.359 GB, free: 2.371 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.511e-05/0.4267, allocations: 7.953 kB / 1.359 GB, free: 2.363 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.409e-05/0.4267, allocations: 4 kB / 1.359 GB, free: 2.359 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.4268, allocations: 15.98 kB / 1.359 GB, free: 2.344 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.95e-05/0.4269, allocations: 7.984 kB / 1.359 GB, free: 2.336 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.216e-06/0.4269, allocations: 7.922 kB / 1.359 GB, free: 2.328 MB / 1.045 GB Notification: Performance of sorting global known variables: time 7.026e-05/0.427, allocations: 101.1 kB / 1.359 GB, free: 2.23 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.01e-07/0.427, allocations: 0 / 1.359 GB, free: 2.23 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002231/0.4272, allocations: 15.95 kB / 1.359 GB, free: 2.215 MB / 1.045 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.0001278/0.4273, allocations: 99.25 kB / 1.359 GB, free: 2.109 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.000221/0.4275, allocations: 63.89 kB / 1.36 GB, free: 2.047 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4276, allocations: 0 / 1.36 GB, free: 2.047 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 7.728e-05/0.4276, allocations: 23.98 kB / 1.36 GB, free: 2.023 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002523/0.4279, allocations: 5.312 kB / 1.36 GB, free: 2.02 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004542/0.4283, allocations: 205.8 kB / 1.36 GB, free: 1.785 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003185/0.4287, allocations: 0.6963 MB / 1.36 GB, free: 1.062 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.827e-05/0.4287, allocations: 15.42 kB / 1.36 GB, free: 1.047 MB / 1.045 GB Notification: Performance of SimCode: time 2.9e-07/0.4287, allocations: 0 / 1.36 GB, free: 1.047 MB / 1.045 GB Notification: Performance of Templates: time 0.002833/0.4315, allocations: 1.031 MB / 1.361 GB, free: 24 kB / 1.045 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.32395470800111]