Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002108/0.002108, allocations: 189.3 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.527/2.527, allocations: 390.2 MB / 0.6643 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 67.83 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8456/0.8475, allocations: 140.4 MB / 0.9491 GB, free: 9.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002749/0.8503, allocations: 1.727 MB / 0.9508 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006478/0.851, allocations: 442.5 kB / 0.9512 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.704e-05/0.8511, allocations: 1.094 kB / 0.9512 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.859e-05/0.8511, allocations: 8.828 kB / 0.9512 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.183e-05/0.8512, allocations: 13.48 kB / 0.9512 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001765/0.8514, allocations: 32.34 kB / 0.9513 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001012/0.8515, allocations: 80.53 kB / 0.9513 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.8516, allocations: 29.92 kB / 0.9514 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.8517, allocations: 37.52 kB / 0.9514 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.361e-05/0.8518, allocations: 34.66 kB / 0.9514 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.35e-05/0.8518, allocations: 7.125 kB / 0.9514 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.656e-05/0.8519, allocations: 10.03 kB / 0.9515 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.222e-05/0.8519, allocations: 18.77 kB / 0.9515 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.988e-05/0.8519, allocations: 31.89 kB / 0.9515 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.852, allocations: 83.52 kB / 0.9516 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.852, allocations: 1.375 kB / 0.9516 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.854e-06/0.8521, allocations: 3.938 kB / 0.9516 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.63e-06/0.8521, allocations: 0 / 0.9516 GB, free: 7.121 MB / 0.7169 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.00046/0.8525, allocations: 394.7 kB / 0.952 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.8526, allocations: 13.62 kB / 0.952 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.993e-05/0.8526, allocations: 8.969 kB / 0.952 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.8527, allocations: 185.6 kB / 0.9522 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.8528, allocations: 3.125 kB / 0.9522 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.731e-05/0.8528, allocations: 7.125 kB / 0.9522 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001902/0.853, allocations: 92.38 kB / 0.9523 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.853, allocations: 0 / 0.9523 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/0.853, allocations: 0 / 0.9523 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.853, allocations: 5.375 kB / 0.9523 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001503/0.8532, allocations: 47.56 kB / 0.9523 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004123/0.8536, allocations: 330.9 kB / 0.9526 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001306/0.8537, allocations: 50.25 kB / 0.9527 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.764e-05/0.8538, allocations: 33.11 kB / 0.9527 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.8538, allocations: 5.453 kB / 0.9527 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.808e-05/0.8539, allocations: 35.81 kB / 0.9528 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.322e-06/0.8539, allocations: 0 / 0.9528 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0003179/0.8542, allocations: 98.03 kB / 0.9528 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/0.8542, allocations: 78.17 kB / 0.9529 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.333e-05/0.8543, allocations: 130.6 kB / 0.953 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.318e-05/0.8544, allocations: 27.14 kB / 0.9531 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.134e-05/0.8544, allocations: 98.97 kB / 0.9532 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.8544, allocations: 10.5 kB / 0.9532 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.982e-05/0.8545, allocations: 22.33 kB / 0.9532 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.602e-05/0.8545, allocations: 320.4 kB / 0.9535 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.61e-05/0.8546, allocations: 28.36 kB / 0.9535 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.579e-05/0.8547, allocations: 48.69 kB / 0.9536 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001247/0.8548, allocations: 44.67 kB / 0.9536 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.8548, allocations: 5.094 kB / 0.9536 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000174/0.855, allocations: 90.27 kB / 0.9537 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.855, allocations: 5.844 kB / 0.9537 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.855, allocations: 0 / 0.9537 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.8551, allocations: 0 / 0.9537 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.8552, allocations: 14.89 kB / 0.9537 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.8552, allocations: 1.75 kB / 0.9537 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.468e-05/0.8553, allocations: 18.42 kB / 0.9537 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.267e-06/0.8553, allocations: 5.531 kB / 0.9538 GB, free: 5.016 MB / 0.7169 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 6.242e-05/0.8553, allocations: 118.2 kB / 0.9539 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.817e-05/0.8554, allocations: 7.031 kB / 0.9539 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.902e-05/0.8554, allocations: 13.77 kB / 0.9539 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.8554, allocations: 1 kB / 0.9539 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.8554, allocations: 1.25 kB / 0.9539 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.8554, allocations: 0 / 0.9539 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001439/0.8556, allocations: 192.3 kB / 0.9541 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.8556, allocations: 3.984 kB / 0.9541 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.775e-05/0.8557, allocations: 6.562 kB / 0.9541 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.8557, allocations: 1.312 kB / 0.9541 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.8557, allocations: 7.984 kB / 0.9541 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.8557, allocations: 1.344 kB / 0.9541 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.8557, allocations: 0 / 0.9541 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001903/0.8559, allocations: 178.7 kB / 0.9543 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.215e-05/0.8559, allocations: 82.39 kB / 0.9543 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.127e-05/0.8559, allocations: 1.406 kB / 0.9543 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.856, allocations: 19.05 kB / 0.9544 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.617e-05/0.8561, allocations: 8.109 kB / 0.9544 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.952e-06/0.8561, allocations: 0.9375 kB / 0.9544 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.35e-05/0.8562, allocations: 105 kB / 0.9545 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8562, allocations: 0 / 0.9545 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002253/0.8564, allocations: 15.03 kB / 0.9545 GB, free: 4.277 MB / 0.7169 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.0001137/0.8565, allocations: 105.3 kB / 0.9546 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002172/0.8567, allocations: 54.81 kB / 0.9546 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/0.8568, allocations: 4 kB / 0.9546 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.961e-05/0.8568, allocations: 31.27 kB / 0.9547 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.8572, allocations: 8.016 kB / 0.9547 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003633/0.8575, allocations: 189.8 kB / 0.9549 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001097/0.8577, allocations: 0.6892 MB / 0.9555 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.553e-05/0.8577, allocations: 10 kB / 0.9555 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.779e-05/0.8577, allocations: 10.81 kB / 0.9555 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.8578, allocations: 0 / 0.9555 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of Templates: time 0.002931/0.8607, allocations: 0.7945 MB / 0.9563 GB, free: 2.844 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches