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.001396/0.001396, allocations: 108.5 kB / 15.99 MB, free: 6.359 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.001388/0.001388, allocations: 193 kB / 16.91 MB, free: 6.195 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.39/1.39, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.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.22/2.22, allocations: 390.2 MB / 0.665 GB, free: 0.8164 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 65.45 kB / 0.8127 GB, free: 33.27 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.3439, allocations: 140.4 MB / 0.9498 GB, free: 9.188 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003949/0.3479, allocations: 1.739 MB / 0.9515 GB, free: 7.434 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009699/0.3489, allocations: 439 kB / 0.9519 GB, free: 7 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.603e-05/0.3491, allocations: 4 kB / 0.9519 GB, free: 6.996 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 5.558e-05/0.3491, allocations: 7.922 kB / 0.9519 GB, free: 6.988 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001076/0.3493, allocations: 11.86 kB / 0.9519 GB, free: 6.977 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000224/0.3495, allocations: 23.98 kB / 0.9519 GB, free: 6.953 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001599/0.3497, allocations: 91.62 kB / 0.952 GB, free: 6.863 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.3498, allocations: 31.89 kB / 0.952 GB, free: 6.832 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001469/0.35, allocations: 35.84 kB / 0.9521 GB, free: 6.797 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.3501, allocations: 39.84 kB / 0.9521 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.437e-05/0.3501, allocations: 8 kB / 0.9521 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.736e-05/0.3502, allocations: 4 kB / 0.9521 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.55e-05/0.3502, allocations: 15.92 kB / 0.9521 GB, free: 6.73 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.603e-05/0.3502, allocations: 35.8 kB / 0.9522 GB, free: 6.695 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.3504, allocations: 72.09 kB / 0.9522 GB, free: 6.625 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3504, allocations: 0 / 0.9522 GB, free: 6.625 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.465e-06/0.3504, allocations: 4 kB / 0.9523 GB, free: 6.621 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.3504, allocations: 0 / 0.9523 GB, free: 6.621 MB / 0.7325 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.0006777/0.3511, allocations: 384.8 kB / 0.9526 GB, free: 6.199 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.3512, allocations: 8.031 kB / 0.9526 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.731e-05/0.3512, allocations: 16.75 kB / 0.9526 GB, free: 6.176 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001739/0.3514, allocations: 180.2 kB / 0.9528 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.3514, allocations: 4.375 kB / 0.9528 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.637e-05/0.3515, allocations: 4.375 kB / 0.9528 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002588/0.3517, allocations: 95.69 kB / 0.9529 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.3518, allocations: 0 / 0.9529 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.955e-05/0.3518, allocations: 4 kB / 0.9529 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.3518, allocations: 4 kB / 0.9529 GB, free: 5.84 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001769/0.352, allocations: 51.84 kB / 0.953 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005966/0.3526, allocations: 328.7 kB / 0.9533 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001557/0.3528, allocations: 58.58 kB / 0.9533 GB, free: 5.352 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.548e-05/0.3528, allocations: 28.94 kB / 0.9534 GB, free: 5.32 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.3529, allocations: 4 kB / 0.9534 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.3529, allocations: 34.56 kB / 0.9534 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.3529, allocations: 0 / 0.9534 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of matching and sorting (n=4): time 0.000371/0.3533, allocations: 93.66 kB / 0.9535 GB, free: 5.176 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.5e-05/0.3534, allocations: 85.03 kB / 0.9536 GB, free: 5.074 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001237/0.3535, allocations: 126 kB / 0.9537 GB, free: 4.938 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.897e-05/0.3535, allocations: 37.69 kB / 0.9537 GB, free: 4.895 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.423e-05/0.3536, allocations: 96.14 kB / 0.9538 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.661e-05/0.3536, allocations: 15.73 kB / 0.9538 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.052e-05/0.3537, allocations: 17.72 kB / 0.9539 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.3539, allocations: 326.8 kB / 0.9542 GB, free: 4.43 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.581e-05/0.354, allocations: 19.98 kB / 0.9542 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.899e-05/0.3541, allocations: 37.7 kB / 0.9542 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001647/0.3542, allocations: 52.86 kB / 0.9543 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3542, allocations: 3.938 kB / 0.9543 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002054/0.3545, allocations: 85.52 kB / 0.9544 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.3545, allocations: 4 kB / 0.9544 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3545, allocations: 0 / 0.9544 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.3545, allocations: 4 kB / 0.9544 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.3546, allocations: 7.984 kB / 0.9544 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.3546, allocations: 4 kB / 0.9544 GB, free: 4.199 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.354e-05/0.3547, allocations: 15.98 kB / 0.9544 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.828e-06/0.3548, allocations: 3.938 kB / 0.9544 GB, free: 4.18 MB / 0.7325 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.000112/0.3549, allocations: 121.3 kB / 0.9545 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.126e-05/0.3549, allocations: 3.906 kB / 0.9545 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.384e-05/0.3549, allocations: 16.23 kB / 0.9545 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.355, allocations: 192 / 0.9545 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.355, allocations: 0 / 0.9545 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.355, allocations: 7.984 kB / 0.9545 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002127/0.3552, allocations: 193.7 kB / 0.9547 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3552, allocations: 4 kB / 0.9547 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.912e-05/0.3553, allocations: 8 kB / 0.9547 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.3553, allocations: 3.984 kB / 0.9547 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.3553, allocations: 4 kB / 0.9547 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.3553, allocations: 0 / 0.9547 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3553, allocations: 0 / 0.9547 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002849/0.3556, allocations: 187.3 kB / 0.9549 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.454e-05/0.3557, allocations: 85.05 kB / 0.955 GB, free: 3.469 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.235e-05/0.3557, allocations: 0 / 0.955 GB, free: 3.469 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.3558, allocations: 11.98 kB / 0.955 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.061e-05/0.3559, allocations: 11.98 kB / 0.955 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.3559, allocations: 0 / 0.955 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.504e-05/0.356, allocations: 101.7 kB / 0.9551 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.7e-07/0.356, allocations: 0 / 0.9551 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002464/0.3562, allocations: 27.84 kB / 0.9551 GB, free: 3.32 MB / 0.7325 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.0001311/0.3564, allocations: 103.2 kB / 0.9552 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002324/0.3566, allocations: 51.91 kB / 0.9553 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3566, allocations: 0 / 0.9553 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.335e-05/0.3567, allocations: 27.98 kB / 0.9553 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003339/0.3571, allocations: 9.25 kB / 0.9553 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005163/0.3576, allocations: 224.7 kB / 0.9555 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003323/0.3579, allocations: 0.6924 MB / 0.9562 GB, free: 2.152 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.61e-05/0.358, allocations: 15.44 kB / 0.9562 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of SimCode: time 7.51e-07/0.358, allocations: 0 / 0.9562 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of Templates: time 0.00298/0.361, allocations: 0.9957 MB / 0.9572 GB, free: 1.148 MB / 0.7325 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