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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001947/0.001947, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002234/0.002234, allocations: 192.2 kB / 16.14 MB, free: 6.711 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.562/1.562, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.817/2.817, allocations: 437 MB / 0.7099 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 59.91 kB / 0.8686 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6935/0.6955, allocations: 151.6 MB / 1.017 GB, free: 2.805 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003623/0.6991, allocations: 1.728 MB / 1.018 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008239/0.7, allocations: 454.9 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.706e-05/0.7001, allocations: 0 / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.894e-05/0.7001, allocations: 3.938 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.000102/0.7002, allocations: 11.92 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000203/0.7004, allocations: 31.91 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001288/0.7006, allocations: 79.66 kB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.7008, allocations: 23.98 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.7009, allocations: 31.91 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001096/0.701, allocations: 31.84 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.334e-05/0.701, allocations: 4 kB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.898e-05/0.7011, allocations: 4 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.664e-05/0.7011, allocations: 15.92 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.441e-05/0.7012, allocations: 31.8 kB / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001505/0.7013, allocations: 85.72 kB / 1.019 GB, free: 272 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.7013, allocations: 0 / 1.019 GB, free: 272 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.122e-06/0.7013, allocations: 0 / 1.019 GB, free: 272 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.005e-05/0.7013, allocations: 0 / 1.019 GB, free: 272 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.0006879/0.702, allocations: 391.1 kB / 1.019 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.7021, allocations: 8.031 kB / 1.019 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.477e-05/0.7021, allocations: 12.84 kB / 1.019 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001917/0.7023, allocations: 176.2 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.7024, allocations: 4.375 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.571e-05/0.7024, allocations: 4.375 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002537/0.7026, allocations: 95.62 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.7027, allocations: 7.922 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.7027, allocations: 0 / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.7027, allocations: 4 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.7029, allocations: 51.95 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006254/0.7035, allocations: 336.5 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001726/0.7037, allocations: 50.56 kB / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.131e-05/0.7038, allocations: 28.94 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.7039, allocations: 0 / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.805e-05/0.7039, allocations: 38.56 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 8.81e-07/0.7039, allocations: 0 / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0003885/0.7043, allocations: 109.6 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.778e-05/0.7044, allocations: 77.11 kB / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001467/0.7045, allocations: 127.4 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.7046, allocations: 29.7 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.238e-05/0.7046, allocations: 96.12 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.376e-05/0.7047, allocations: 11.81 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.474e-05/0.7048, allocations: 21.66 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000217/0.705, allocations: 322.8 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.472e-05/0.7051, allocations: 27.98 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.099e-05/0.7052, allocations: 33.7 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001457/0.7053, allocations: 48.83 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.7053, allocations: 0 / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002061/0.7055, allocations: 93.5 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.7056, allocations: 9.281 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.7056, allocations: 0 / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.7056, allocations: 0 / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.7057, allocations: 8 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.7057, allocations: 3.984 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.399e-05/0.7058, allocations: 15.94 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.33e-05/0.7059, allocations: 7.922 kB / 1.021 GB, free: 13.82 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 0.0001167/0.706, allocations: 113.8 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.176e-05/0.706, allocations: 11.91 kB / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.643e-05/0.7061, allocations: 12.25 kB / 1.021 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.7061, allocations: 0 / 1.021 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.7061, allocations: 0 / 1.021 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.7061, allocations: 0 / 1.021 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002297/0.7063, allocations: 193.5 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.7063, allocations: 3.938 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.649e-05/0.7064, allocations: 12.17 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.7064, allocations: 0 / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.746e-05/0.7064, allocations: 4 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.7065, allocations: 4 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.7065, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002675/0.7067, allocations: 183.4 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.495e-05/0.7068, allocations: 81.02 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.716e-05/0.7068, allocations: 4 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.7069, allocations: 7.984 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.469e-05/0.707, allocations: 15.97 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.707, allocations: 4 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.242e-05/0.7071, allocations: 104.5 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7071, allocations: 0 / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002254/0.7074, allocations: 12 kB / 1.022 GB, free: 12.97 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 0.0001384/0.7075, allocations: 107.9 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002203/0.7077, allocations: 55.95 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.7077, allocations: 4 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.61e-05/0.7078, allocations: 23.98 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003442/0.7082, allocations: 15.88 kB / 1.022 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004682/0.7087, allocations: 204.7 kB / 1.022 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/0.709, allocations: 0.6887 MB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.6e-05/0.7091, allocations: 4 kB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.278e-05/0.7091, allocations: 15.42 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of SimCode: time 4.6e-07/0.7091, allocations: 0 / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of Templates: time 0.003548/0.7127, allocations: 0.7421 MB / 1.024 GB, free: 11.07 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=400 -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/jenkins/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