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.001081/0.001081, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.008529/0.008529, allocations: 171.8 kB / 16.26 MB, free: 6.613 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.423/1.423, allocations: 223.3 MB / 240.3 MB, free: 5.352 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.473/2.473, allocations: 390.9 MB / 0.6663 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004001/0.0004002, allocations: 12 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8572/0.8576, allocations: 142.4 MB / 0.955 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002157/0.8599, allocations: 1.387 MB / 0.9564 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007631/0.8607, allocations: 440.7 kB / 0.9568 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.774e-05/0.8608, allocations: 0.9062 kB / 0.9568 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.937e-05/0.8608, allocations: 3.938 kB / 0.9568 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.8609, allocations: 14.98 kB / 0.9568 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001987/0.8611, allocations: 22.84 kB / 0.9569 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001163/0.8612, allocations: 75.53 kB / 0.9569 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001483/0.8614, allocations: 30.81 kB / 0.957 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.8615, allocations: 31.25 kB / 0.957 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.928e-05/0.8616, allocations: 33.72 kB / 0.957 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.76e-05/0.8617, allocations: 1.906 kB / 0.957 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.774e-05/0.8617, allocations: 2.625 kB / 0.957 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.327e-05/0.8617, allocations: 14.8 kB / 0.957 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.117e-05/0.8618, allocations: 44.3 kB / 0.9571 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001204/0.8619, allocations: 83.27 kB / 0.9572 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.8619, allocations: 1.156 kB / 0.9572 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.995e-06/0.8619, allocations: 4 kB / 0.9572 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.212e-06/0.8619, allocations: 0 / 0.9572 GB, free: 6.047 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.0005355/0.8625, allocations: 392.4 kB / 0.9575 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.8625, allocations: 9.094 kB / 0.9576 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.988e-05/0.8626, allocations: 9.594 kB / 0.9576 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.8627, allocations: 175.8 kB / 0.9577 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.8627, allocations: 6.5 kB / 0.9577 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.8628, allocations: 11.69 kB / 0.9577 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002141/0.863, allocations: 95.12 kB / 0.9578 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.863, allocations: 0 / 0.9578 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.863, allocations: 9.484 kB / 0.9578 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.863, allocations: 1.312 kB / 0.9578 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001694/0.8632, allocations: 57.31 kB / 0.9579 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000498/0.8637, allocations: 339.4 kB / 0.9582 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001415/0.8639, allocations: 52.75 kB / 0.9583 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.713e-05/0.864, allocations: 30.22 kB / 0.9583 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.864, allocations: 0 / 0.9583 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.864, allocations: 44.84 kB / 0.9583 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 8.31e-07/0.864, allocations: 0 / 0.9583 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0003707/0.8644, allocations: 113.2 kB / 0.9585 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.641e-05/0.8645, allocations: 82.11 kB / 0.9585 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.498e-05/0.8646, allocations: 130.6 kB / 0.9587 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.8646, allocations: 26.89 kB / 0.9587 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.276e-05/0.8646, allocations: 95.66 kB / 0.9588 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.915e-05/0.8647, allocations: 13.38 kB / 0.9588 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.429e-05/0.8647, allocations: 11.97 kB / 0.9588 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.824e-05/0.8647, allocations: 324.1 kB / 0.9591 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.543e-05/0.8648, allocations: 32.89 kB / 0.9591 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.435e-05/0.8649, allocations: 41.27 kB / 0.9592 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001467/0.8651, allocations: 55.7 kB / 0.9592 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.8651, allocations: 7.938 kB / 0.9592 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002008/0.8653, allocations: 94.48 kB / 0.9593 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.8653, allocations: 5.719 kB / 0.9593 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.8653, allocations: 0 / 0.9593 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.8653, allocations: 0 / 0.9593 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.8655, allocations: 16.61 kB / 0.9594 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.8655, allocations: 1.531 kB / 0.9594 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.684e-05/0.8656, allocations: 23.02 kB / 0.9594 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.8656, allocations: 5.125 kB / 0.9594 GB, free: 3.949 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 7.264e-05/0.8657, allocations: 118 kB / 0.9595 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.98e-05/0.8657, allocations: 7.062 kB / 0.9595 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.042e-05/0.8657, allocations: 14.8 kB / 0.9595 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.8657, allocations: 4 kB / 0.9595 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.8657, allocations: 1.125 kB / 0.9595 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.8658, allocations: 0 / 0.9595 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001549/0.8659, allocations: 192.2 kB / 0.9597 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.8659, allocations: 0 / 0.9597 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.431e-05/0.866, allocations: 13.48 kB / 0.9597 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.866, allocations: 4 kB / 0.9597 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.866, allocations: 1.656 kB / 0.9597 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.614e-06/0.866, allocations: 0 / 0.9597 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.866, allocations: 0 / 0.9597 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002374/0.8663, allocations: 194.7 kB / 0.9599 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.542e-05/0.8663, allocations: 82.89 kB / 0.96 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.279e-05/0.8663, allocations: 1.75 kB / 0.96 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.8665, allocations: 18.7 kB / 0.96 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.651e-05/0.8665, allocations: 11.61 kB / 0.96 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.8665, allocations: 1.812 kB / 0.96 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.028e-05/0.8666, allocations: 105 kB / 0.9601 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8666, allocations: 0 / 0.9601 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002306/0.8668, allocations: 15 kB / 0.9601 GB, free: 3.203 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.0001011/0.8669, allocations: 97.12 kB / 0.9602 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002219/0.8672, allocations: 62.47 kB / 0.9603 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.8672, allocations: 0 / 0.9603 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.033e-05/0.8673, allocations: 36.55 kB / 0.9603 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.8676, allocations: 10.73 kB / 0.9603 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004087/0.868, allocations: 202.5 kB / 0.9605 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001553/0.8682, allocations: 0.6944 MB / 0.9612 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.346e-05/0.8682, allocations: 5.688 kB / 0.9612 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.689e-05/0.8683, allocations: 10.19 kB / 0.9612 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of SimCode: time 4.01e-07/0.8683, allocations: 0 / 0.9612 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of Templates: time 0.003285/0.8716, allocations: 0.7406 MB / 0.9619 GB, free: 1.797 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