Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.006273/0.006273, allocations: 101.1 kB / 15.88 MB, free: 5.867 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.001397/0.001397, allocations: 193.5 kB / 16.79 MB, free: 5.809 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.374/1.374, allocations: 222.9 MB / 240.5 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.628/2.628, allocations: 437 MB / 0.7106 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001493, allocations: 71.88 kB / 0.8692 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6238/0.6253, allocations: 151.6 MB / 1.017 GB, free: 2.977 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003069/0.6285, allocations: 1.743 MB / 1.019 GB, free: 1.219 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008267/0.6293, allocations: 443 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.959e-05/0.6294, allocations: 0 / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.793e-05/0.6295, allocations: 7.922 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.628e-05/0.6296, allocations: 19.86 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001843/0.6298, allocations: 31.91 kB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001063/0.6299, allocations: 71.77 kB / 1.02 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.63, allocations: 27.92 kB / 1.02 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.6301, allocations: 31.86 kB / 1.02 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.177e-05/0.6302, allocations: 31.84 kB / 1.02 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.186e-05/0.6303, allocations: 8 kB / 1.02 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 2e-05/0.6303, allocations: 4 kB / 1.02 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.735e-05/0.6303, allocations: 15.91 kB / 1.02 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.737e-05/0.6304, allocations: 31.81 kB / 1.02 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.657e-05/0.6305, allocations: 65.98 kB / 1.02 GB, free: 452 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.6305, allocations: 0 / 1.02 GB, free: 452 kB / 0.7637 GB Notification: Performance of FrontEnd: time 8.22e-07/0.6305, allocations: 0 / 1.02 GB, free: 452 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.6305, allocations: 0 / 1.02 GB, free: 452 kB / 0.7637 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.0005557/0.6311, allocations: 388.5 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.6311, allocations: 8.031 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.994e-05/0.6312, allocations: 12.89 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001579/0.6313, allocations: 184.1 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.6313, allocations: 384 / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.019e-05/0.6314, allocations: 4.375 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002373/0.6316, allocations: 91.69 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.6316, allocations: 0 / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.486e-05/0.6317, allocations: 4 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.6317, allocations: 4 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000169/0.6318, allocations: 51.89 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005248/0.6324, allocations: 320.7 kB / 1.021 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001565/0.6325, allocations: 58.58 kB / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.759e-05/0.6326, allocations: 28.94 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.6327, allocations: 0 / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.6327, allocations: 38.5 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 8.51e-07/0.6327, allocations: 0 / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0003413/0.6331, allocations: 105.5 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.481e-05/0.6331, allocations: 77.11 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/0.6332, allocations: 131.7 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/0.6333, allocations: 37.64 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.461e-05/0.6333, allocations: 92.14 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.6334, allocations: 15.73 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-05/0.6334, allocations: 17.72 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001132/0.6335, allocations: 330.8 kB / 1.022 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.179e-05/0.6336, allocations: 19.98 kB / 1.022 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.473e-05/0.6337, allocations: 37.7 kB / 1.022 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000135/0.6338, allocations: 48.83 kB / 1.022 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.6339, allocations: 0 / 1.022 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001898/0.634, allocations: 85.61 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.6341, allocations: 4 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.6341, allocations: 0 / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.6341, allocations: 3.938 kB / 1.022 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.6342, allocations: 11.98 kB / 1.022 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.76e-06/0.6342, allocations: 0 / 1.022 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.213e-05/0.6343, allocations: 20.11 kB / 1.022 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.6343, allocations: 7.938 kB / 1.022 GB, free: 14 MB / 0.7794 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 8.357e-05/0.6344, allocations: 122.6 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.364e-05/0.6345, allocations: 11.88 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.051e-05/0.6345, allocations: 12.25 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.6345, allocations: 0 / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.6345, allocations: 0 / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.6345, allocations: 0 / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001816/0.6347, allocations: 193.5 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.6347, allocations: 0 / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.612e-05/0.6348, allocations: 15.98 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.6348, allocations: 4 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.6348, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.6348, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.6348, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002245/0.6351, allocations: 183.3 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.183e-05/0.6351, allocations: 88.95 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.142e-05/0.6351, allocations: 0 / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.6352, allocations: 15.98 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.837e-05/0.6353, allocations: 11.98 kB / 1.023 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.75e-06/0.6353, allocations: 0 / 1.023 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.814e-05/0.6354, allocations: 104.3 kB / 1.023 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6354, allocations: 0 / 1.023 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002284/0.6356, allocations: 16 kB / 1.023 GB, free: 13.15 MB / 0.7794 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 9.99e-05/0.6357, allocations: 99.25 kB / 1.023 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000202/0.6359, allocations: 55.91 kB / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.6359, allocations: 0 / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.468e-05/0.636, allocations: 27.97 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.6363, allocations: 14.94 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004062/0.6368, allocations: 222.5 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.637, allocations: 0.6926 MB / 1.024 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.391e-05/0.6371, allocations: 7.438 kB / 1.024 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.6371, allocations: 0 / 1.024 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of Templates: time 0.002181/0.6392, allocations: 0.9899 MB / 1.025 GB, free: 10.99 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches