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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.002207/0.002207, allocations: 100.1 kB / 15.88 MB, free: 12 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.002117/0.002117, allocations: 200 kB / 16.79 MB, free: 6.828 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.37/1.37, allocations: 222.9 MB / 240.5 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.486/2.486, allocations: 390.2 MB / 0.6649 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 67.89 kB / 0.8125 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7735/0.7751, allocations: 140.4 MB / 0.9496 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002973/0.7781, allocations: 1.726 MB / 0.9513 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007356/0.7788, allocations: 450.4 kB / 0.9517 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.969e-05/0.7789, allocations: 1.5 kB / 0.9517 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.124e-05/0.779, allocations: 3.938 kB / 0.9517 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.53e-05/0.7791, allocations: 9.547 kB / 0.9517 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001902/0.7793, allocations: 31.28 kB / 0.9518 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001152/0.7794, allocations: 75.12 kB / 0.9518 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001391/0.7795, allocations: 31 kB / 0.9519 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001131/0.7797, allocations: 28.61 kB / 0.9519 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.79e-05/0.7798, allocations: 38.73 kB / 0.9519 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.551e-05/0.7798, allocations: 2.656 kB / 0.9519 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.049e-05/0.7798, allocations: 3.906 kB / 0.9519 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.686e-05/0.7798, allocations: 14.42 kB / 0.9519 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.014e-05/0.7799, allocations: 28.2 kB / 0.952 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001054/0.78, allocations: 63.83 kB / 0.952 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.78, allocations: 8.875 kB / 0.952 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.443e-06/0.78, allocations: 0 / 0.952 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.78, allocations: 0 / 0.952 GB, free: 7.238 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.00064/0.7807, allocations: 395.6 kB / 0.9524 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.7807, allocations: 8.719 kB / 0.9524 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.9e-05/0.7808, allocations: 14.22 kB / 0.9524 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.7809, allocations: 176.9 kB / 0.9526 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.7809, allocations: 10.06 kB / 0.9526 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.781, allocations: 4.219 kB / 0.9526 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002172/0.7812, allocations: 92.09 kB / 0.9527 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.7812, allocations: 0 / 0.9527 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.7812, allocations: 4 kB / 0.9527 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.882e-06/0.7812, allocations: 5.422 kB / 0.9527 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000151/0.7814, allocations: 50.56 kB / 0.9528 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004569/0.7819, allocations: 327.5 kB / 0.9531 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001396/0.782, allocations: 54.45 kB / 0.9531 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.852e-05/0.7821, allocations: 30.53 kB / 0.9532 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.7821, allocations: 0 / 0.9532 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.777e-05/0.7821, allocations: 35.88 kB / 0.9532 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 7.62e-07/0.7821, allocations: 0 / 0.9532 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0003514/0.7825, allocations: 98.86 kB / 0.9533 GB, free: 6 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.7825, allocations: 78.23 kB / 0.9534 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.489e-05/0.7826, allocations: 135.8 kB / 0.9535 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.7827, allocations: 26.98 kB / 0.9535 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.237e-05/0.7827, allocations: 103.6 kB / 0.9536 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.031e-05/0.7827, allocations: 14.56 kB / 0.9536 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.693e-05/0.7828, allocations: 17.34 kB / 0.9536 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.356e-05/0.7829, allocations: 321.3 kB / 0.9539 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.74e-05/0.7829, allocations: 23.58 kB / 0.954 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.465e-05/0.783, allocations: 41.58 kB / 0.954 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001311/0.7832, allocations: 52.52 kB / 0.9541 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.7832, allocations: 128 / 0.9541 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001861/0.7834, allocations: 87.23 kB / 0.9541 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.7834, allocations: 9.422 kB / 0.9542 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.7834, allocations: 0 / 0.9542 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.7834, allocations: 4.031 kB / 0.9542 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.7835, allocations: 11.06 kB / 0.9542 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.7835, allocations: 1.031 kB / 0.9542 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.603e-05/0.7836, allocations: 14.48 kB / 0.9542 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.328e-06/0.7836, allocations: 5.406 kB / 0.9542 GB, free: 5.141 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.531e-05/0.7837, allocations: 123.1 kB / 0.9543 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.917e-05/0.7838, allocations: 6.562 kB / 0.9543 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.889e-05/0.7838, allocations: 13.78 kB / 0.9543 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.7838, allocations: 9.281 kB / 0.9543 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.7838, allocations: 0 / 0.9543 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.7838, allocations: 1.562 kB / 0.9543 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001558/0.784, allocations: 187 kB / 0.9545 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.784, allocations: 0 / 0.9545 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.789e-05/0.784, allocations: 11.67 kB / 0.9545 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.7841, allocations: 0 / 0.9545 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.7841, allocations: 1.625 kB / 0.9545 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.7841, allocations: 0 / 0.9545 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.7841, allocations: 0 / 0.9545 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002055/0.7843, allocations: 179.7 kB / 0.9547 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.11e-05/0.7843, allocations: 82.23 kB / 0.9548 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.578e-05/0.7844, allocations: 5.344 kB / 0.9548 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.7845, allocations: 10.48 kB / 0.9548 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.735e-05/0.7846, allocations: 8.547 kB / 0.9548 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.936e-06/0.7846, allocations: 5.047 kB / 0.9548 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.016e-05/0.7846, allocations: 114.8 kB / 0.9549 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7846, allocations: 0 / 0.9549 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002307/0.7849, allocations: 13.75 kB / 0.9549 GB, free: 4.395 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.0001155/0.785, allocations: 102.5 kB / 0.955 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000216/0.7852, allocations: 54.25 kB / 0.9551 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.7852, allocations: 1.688 kB / 0.9551 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.247e-05/0.7853, allocations: 26.7 kB / 0.9551 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.7856, allocations: 10.91 kB / 0.9551 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004217/0.786, allocations: 216.8 kB / 0.9553 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001588/0.7862, allocations: 0.694 MB / 0.956 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.57e-05/0.7863, allocations: 13.95 kB / 0.956 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of SimCode: time 3e-07/0.7863, allocations: 0 / 0.956 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of Templates: time 0.002676/0.7889, allocations: 0.9869 MB / 0.957 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/jenkins1/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