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.001454/0.001454, allocations: 108 kB / 15.61 MB, free: 152 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.00171/0.00171, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.362/1.362, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.456/2.456, allocations: 390.2 MB / 0.6646 GB, free: 476 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 59.91 kB / 0.8125 GB, free: 14.5 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9131/0.9144, allocations: 140.4 MB / 0.9496 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002961/0.9174, allocations: 1.666 MB / 0.9512 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006742/0.9182, allocations: 448.7 kB / 0.9516 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.66e-05/0.9182, allocations: 1.375 kB / 0.9516 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.546e-05/0.9183, allocations: 7.875 kB / 0.9517 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.738e-05/0.9184, allocations: 17.22 kB / 0.9517 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001821/0.9186, allocations: 28.03 kB / 0.9517 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001019/0.9187, allocations: 80 kB / 0.9518 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.9188, allocations: 43.73 kB / 0.9518 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.9189, allocations: 33.02 kB / 0.9518 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.764e-05/0.919, allocations: 37.19 kB / 0.9519 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.544e-05/0.9191, allocations: 7 kB / 0.9519 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.034e-05/0.9191, allocations: 7.25 kB / 0.9519 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.544e-05/0.9191, allocations: 22 kB / 0.9519 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.453e-05/0.9192, allocations: 40.8 kB / 0.952 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001226/0.9193, allocations: 79.94 kB / 0.952 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.9193, allocations: 0 / 0.952 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.393e-06/0.9193, allocations: 1.469 kB / 0.952 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.262e-06/0.9193, allocations: 0 / 0.952 GB, free: 7.184 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.0005086/0.9199, allocations: 385.7 kB / 0.9524 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.9199, allocations: 9.625 kB / 0.9524 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.297e-05/0.9199, allocations: 13.8 kB / 0.9524 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.9201, allocations: 193.7 kB / 0.9526 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.9201, allocations: 1.844 kB / 0.9526 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.012e-05/0.9201, allocations: 4.344 kB / 0.9526 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002073/0.9203, allocations: 95.91 kB / 0.9527 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.9203, allocations: 0 / 0.9527 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.9204, allocations: 0 / 0.9527 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.9204, allocations: 1.125 kB / 0.9527 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001627/0.9205, allocations: 55.67 kB / 0.9528 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004409/0.921, allocations: 327.8 kB / 0.9531 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001404/0.9211, allocations: 53.45 kB / 0.9531 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.302e-05/0.9212, allocations: 29.44 kB / 0.9531 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.9213, allocations: 1.406 kB / 0.9532 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.035e-05/0.9213, allocations: 36.03 kB / 0.9532 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.9213, allocations: 0 / 0.9532 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0003335/0.9216, allocations: 97.64 kB / 0.9533 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.9217, allocations: 82.17 kB / 0.9534 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.039e-05/0.9218, allocations: 129.2 kB / 0.9535 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.9218, allocations: 29.7 kB / 0.9535 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.339e-05/0.9218, allocations: 95.83 kB / 0.9536 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.891e-05/0.9219, allocations: 14.45 kB / 0.9536 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.892e-05/0.9219, allocations: 17.31 kB / 0.9536 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.704e-05/0.922, allocations: 325.3 kB / 0.9539 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.114e-05/0.9221, allocations: 28.73 kB / 0.954 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.985e-05/0.9222, allocations: 41.39 kB / 0.954 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001348/0.9223, allocations: 52.36 kB / 0.9541 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.9223, allocations: 0 / 0.9541 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001851/0.9225, allocations: 82.95 kB / 0.9541 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.9225, allocations: 5.5 kB / 0.9541 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.9225, allocations: 4.031 kB / 0.9541 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.9226, allocations: 1.438 kB / 0.9541 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.9227, allocations: 10.61 kB / 0.9542 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.9227, allocations: 0 / 0.9542 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.856e-05/0.9228, allocations: 18.8 kB / 0.9542 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.936e-06/0.9228, allocations: 5.125 kB / 0.9542 GB, free: 5.09 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.094e-05/0.9229, allocations: 118.7 kB / 0.9543 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.983e-05/0.9229, allocations: 10.66 kB / 0.9543 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.901e-05/0.9229, allocations: 18.89 kB / 0.9543 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.9229, allocations: 0 / 0.9543 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.9229, allocations: 1.438 kB / 0.9543 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/0.923, allocations: 0 / 0.9543 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001495/0.9231, allocations: 192.7 kB / 0.9545 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.9231, allocations: 0 / 0.9545 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.06e-05/0.9232, allocations: 14.92 kB / 0.9545 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.9232, allocations: 0 / 0.9545 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.9232, allocations: 1.281 kB / 0.9545 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.9232, allocations: 0 / 0.9545 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.9232, allocations: 0 / 0.9545 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001979/0.9234, allocations: 187.2 kB / 0.9547 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.626e-05/0.9235, allocations: 83.98 kB / 0.9548 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.313e-05/0.9235, allocations: 1.531 kB / 0.9548 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.9236, allocations: 9.203 kB / 0.9548 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.458e-05/0.9237, allocations: 12.36 kB / 0.9548 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-06/0.9237, allocations: 9.375 kB / 0.9548 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.681e-05/0.9238, allocations: 107 kB / 0.9549 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9238, allocations: 0 / 0.9549 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002275/0.924, allocations: 14.47 kB / 0.9549 GB, free: 4.336 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.0001198/0.9241, allocations: 102.1 kB / 0.955 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002454/0.9244, allocations: 50.41 kB / 0.9551 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.9244, allocations: 5.312 kB / 0.9551 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.255e-05/0.9245, allocations: 35.58 kB / 0.9551 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003253/0.9248, allocations: 6.484 kB / 0.9551 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004016/0.9252, allocations: 173.2 kB / 0.9553 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001649/0.9254, allocations: 0.693 MB / 0.956 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.383e-05/0.9254, allocations: 2.844 kB / 0.956 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.028e-05/0.9255, allocations: 10.38 kB / 0.956 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.9255, allocations: 0 / 0.956 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of Templates: time 0.003414/0.9289, allocations: 0.8817 MB / 0.9568 GB, free: 2.883 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