Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001745/0.001745, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002177/0.002178, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.394/1.394, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.835/2.835, allocations: 472.6 MB / 0.7451 GB, free: 4.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 62.55 kB / 0.912 GB, free: 33.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2874/0.2888, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.00291/0.2917, allocations: 1.667 MB / 1.07 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000738/0.2925, allocations: 458.8 kB / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.125e-05/0.2925, allocations: 0 / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.516e-05/0.2926, allocations: 11.86 kB / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.023e-05/0.2927, allocations: 15.81 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001637/0.2928, allocations: 31.95 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001149/0.293, allocations: 75.78 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.2931, allocations: 27.97 kB / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001042/0.2932, allocations: 39.78 kB / 1.07 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.203e-05/0.2933, allocations: 35.84 kB / 1.071 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.545e-05/0.2933, allocations: 8 kB / 1.071 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.85e-05/0.2933, allocations: 12 kB / 1.071 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.602e-05/0.2934, allocations: 15.92 kB / 1.071 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.499e-05/0.2934, allocations: 43.73 kB / 1.071 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001197/0.2935, allocations: 79.97 kB / 1.071 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2936, allocations: 0 / 1.071 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.252e-06/0.2936, allocations: 0 / 1.071 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.2936, allocations: 0 / 1.071 GB, free: 7.855 MB / 0.8262 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.0005094/0.2941, allocations: 391.1 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.2941, allocations: 16.03 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.991e-05/0.2942, allocations: 8.844 kB / 1.071 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.2943, allocations: 180.8 kB / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.2943, allocations: 8.375 kB / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.384e-05/0.2944, allocations: 4.312 kB / 1.071 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002069/0.2946, allocations: 91.69 kB / 1.071 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.2946, allocations: 4 kB / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.2946, allocations: 0 / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.2946, allocations: 4 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001597/0.2948, allocations: 51.95 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004544/0.2952, allocations: 320.6 kB / 1.072 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.2954, allocations: 62.58 kB / 1.072 GB, free: 6.582 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.049e-05/0.2955, allocations: 32.88 kB / 1.072 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/0.2955, allocations: 0 / 1.072 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.2955, allocations: 34.56 kB / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 7.81e-07/0.2955, allocations: 0 / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4): time 0.0003351/0.2959, allocations: 101.5 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.2959, allocations: 81.11 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.296, allocations: 131.8 kB / 1.072 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.2961, allocations: 25.7 kB / 1.072 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.202e-05/0.2961, allocations: 96.05 kB / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.06e-05/0.2961, allocations: 15.83 kB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.161e-05/0.2962, allocations: 17.72 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.2963, allocations: 326.8 kB / 1.073 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.939e-05/0.2964, allocations: 27.92 kB / 1.073 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.736e-05/0.2965, allocations: 37.7 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001417/0.2966, allocations: 52.95 kB / 1.073 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2966, allocations: 0 / 1.073 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002152/0.2969, allocations: 85.61 kB / 1.073 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.2969, allocations: 13.66 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.2969, allocations: 0 / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.2969, allocations: 0 / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.297, allocations: 15.92 kB / 1.073 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.2971, allocations: 0 / 1.073 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.937e-05/0.2971, allocations: 7.984 kB / 1.073 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.2972, allocations: 7.938 kB / 1.073 GB, free: 5.406 MB / 0.8262 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.58e-05/0.2972, allocations: 121.8 kB / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.356e-05/0.2973, allocations: 11.89 kB / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.022e-05/0.2973, allocations: 8.25 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.2973, allocations: 0 / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.2973, allocations: 4 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.2973, allocations: 0 / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001828/0.2975, allocations: 185.6 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2975, allocations: 0 / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.441e-05/0.2976, allocations: 11.98 kB / 1.073 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2976, allocations: 0 / 1.073 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.2976, allocations: 0 / 1.073 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.2977, allocations: 7.938 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2977, allocations: 4 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002372/0.2979, allocations: 183.5 kB / 1.073 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.01e-05/0.298, allocations: 89.02 kB / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.298, allocations: 0 / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.2981, allocations: 11.98 kB / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.581e-05/0.2981, allocations: 11.98 kB / 1.073 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.2982, allocations: 0 / 1.073 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.187e-05/0.2982, allocations: 105.2 kB / 1.074 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2982, allocations: 0 / 1.074 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002342/0.2985, allocations: 19.92 kB / 1.074 GB, free: 4.547 MB / 0.8262 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.0001099/0.2986, allocations: 103.8 kB / 1.074 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002223/0.2988, allocations: 59.97 kB / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.2988, allocations: 4 kB / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.612e-05/0.2989, allocations: 23.98 kB / 1.074 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.2992, allocations: 8.547 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003917/0.2996, allocations: 171.2 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/0.2999, allocations: 0.6923 MB / 1.075 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.014e-05/0.2999, allocations: 4 kB / 1.075 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.302e-05/0.3, allocations: 7.438 kB / 1.075 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.3, allocations: 4 kB / 1.075 GB, free: 3.414 MB / 0.8262 GB Notification: Performance of Templates: time 0.003091/0.3031, allocations: 0.8883 MB / 1.075 GB, free: 2.543 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches