Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.00138/0.00138, 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.001642/0.001642, allocations: 218.8 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.462/1.462, allocations: 230.6 MB / 256.8 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.855/2.855, allocations: 476 MB / 0.7707 GB, free: 4.711 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_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_11_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.002166/0.002166, allocations: 67.27 kB / 1.118 GB, free: 41.28 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3615/0.3636, allocations: 170 MB / 1.284 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003579/0.3672, allocations: 1.681 MB / 1.285 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001089/0.3683, allocations: 0.4889 MB / 1.286 GB, free: 9.75 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.476e-05/0.3684, allocations: 3.938 kB / 1.286 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.612e-05/0.3684, allocations: 3.938 kB / 1.286 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001039/0.3685, allocations: 23.78 kB / 1.286 GB, free: 9.719 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002709/0.3688, allocations: 43.89 kB / 1.286 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001598/0.3689, allocations: 87.7 kB / 1.286 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.3691, allocations: 20.16 kB / 1.286 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000168/0.3692, allocations: 47.86 kB / 1.286 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.727e-05/0.3693, allocations: 39.77 kB / 1.286 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.126e-05/0.3693, allocations: 8 kB / 1.286 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.502e-05/0.3694, allocations: 16 kB / 1.286 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.785e-05/0.3694, allocations: 19.86 kB / 1.286 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.506e-05/0.3695, allocations: 31.86 kB / 1.286 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001944/0.3697, allocations: 87.62 kB / 1.286 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3697, allocations: 0 / 1.286 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3697, allocations: 0 / 1.286 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.3697, allocations: 4 kB / 1.286 GB, free: 9.316 MB / 0.9825 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.0005923/0.3703, allocations: 322 kB / 1.287 GB, free: 8.973 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.3703, allocations: 8.031 kB / 1.287 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002265/0.3705, allocations: 28.83 kB / 1.287 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002814/0.3708, allocations: 144.7 kB / 1.287 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.3708, allocations: 384 / 1.287 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.662e-05/0.3708, allocations: 8.375 kB / 1.287 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00025/0.3711, allocations: 113.4 kB / 1.287 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.3711, allocations: 4 kB / 1.287 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.3711, allocations: 8 kB / 1.287 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.3711, allocations: 0 / 1.287 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001705/0.3713, allocations: 51.91 kB / 1.287 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004741/0.3718, allocations: 252.4 kB / 1.287 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00015/0.3719, allocations: 50.58 kB / 1.287 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.929e-05/0.372, allocations: 32.94 kB / 1.287 GB, free: 8.203 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.011e-05/0.372, allocations: 4 kB / 1.287 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.3721, allocations: 30.56 kB / 1.287 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 1.463e-06/0.3721, allocations: 0 / 1.287 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.0003784/0.3724, allocations: 105.5 kB / 1.287 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.528e-05/0.3725, allocations: 81.11 kB / 1.288 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.3726, allocations: 129.8 kB / 1.288 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.3727, allocations: 29.7 kB / 1.288 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.15e-05/0.3727, allocations: 104 kB / 1.288 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.3728, allocations: 15.91 kB / 1.288 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-05/0.3728, allocations: 17.72 kB / 1.288 GB, free: 7.637 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001633/0.373, allocations: 322.8 kB / 1.288 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.423e-05/0.3731, allocations: 23.98 kB / 1.288 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.952e-05/0.3732, allocations: 63.41 kB / 1.288 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001502/0.3733, allocations: 48.83 kB / 1.288 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.3733, allocations: 3.938 kB / 1.288 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000212/0.3735, allocations: 105.6 kB / 1.288 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.3735, allocations: 4 kB / 1.288 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3735, allocations: 0 / 1.288 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.3736, allocations: 0 / 1.288 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.3737, allocations: 8 kB / 1.288 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.3737, allocations: 3.984 kB / 1.288 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.847e-05/0.3737, allocations: 8.188 kB / 1.288 GB, free: 7.027 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.3738, allocations: 3.984 kB / 1.288 GB, free: 7.023 MB / 0.9825 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.000119/0.3739, allocations: 125.8 kB / 1.288 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.388e-05/0.3739, allocations: 11.95 kB / 1.288 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.72e-05/0.3739, allocations: 12.34 kB / 1.289 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.3739, allocations: 0 / 1.289 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.374, allocations: 0 / 1.289 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.374, allocations: 0 / 1.289 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001982/0.3742, allocations: 133.2 kB / 1.289 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3742, allocations: 0 / 1.289 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.936e-05/0.3742, allocations: 7.984 kB / 1.289 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.3742, allocations: 4 kB / 1.289 GB, free: 6.691 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/0.3742, allocations: 0 / 1.289 GB, free: 6.691 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3742, allocations: 7.938 kB / 1.289 GB, free: 6.684 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3742, allocations: 0 / 1.289 GB, free: 6.684 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002647/0.3745, allocations: 183.4 kB / 1.289 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.974e-05/0.3745, allocations: 11.94 kB / 1.289 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.044e-05/0.3745, allocations: 0 / 1.289 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.3747, allocations: 11.98 kB / 1.289 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.188e-05/0.3747, allocations: 11.98 kB / 1.289 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.3747, allocations: 0 / 1.289 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.176e-05/0.3748, allocations: 104.9 kB / 1.289 GB, free: 6.352 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3748, allocations: 8 kB / 1.289 GB, free: 6.344 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002285/0.375, allocations: 8 kB / 1.289 GB, free: 6.336 MB / 0.9825 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.00014/0.3752, allocations: 103.2 kB / 1.289 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002223/0.3754, allocations: 55.84 kB / 1.289 GB, free: 6.172 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3754, allocations: 0 / 1.289 GB, free: 6.172 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.349e-05/0.3755, allocations: 23.98 kB / 1.289 GB, free: 6.148 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002557/0.3757, allocations: 12 kB / 1.289 GB, free: 6.137 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000483/0.3762, allocations: 219.9 kB / 1.289 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.34e-05/0.3763, allocations: 75.89 kB / 1.289 GB, free: 5.789 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.27e-05/0.3763, allocations: 7.438 kB / 1.289 GB, free: 5.785 MB / 0.9825 GB Notification: Performance of SimCode: time 3.2e-07/0.3763, allocations: 4 kB / 1.289 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of Templates: time 0.002998/0.3793, allocations: 1.08 MB / 1.291 GB, free: 4.711 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.10930382879451]