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.0009478/0.0009478, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.001152/0.001152, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 223.3 MB / 240 MB, free: 5.41 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.611/2.611, allocations: 390.9 MB / 0.666 GB, free: 2.469 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003766/0.0003767, allocations: 8 kB / 0.8154 GB, free: 13.62 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8483/0.8487, allocations: 142.4 MB / 0.9544 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001983/0.8507, allocations: 1.367 MB / 0.9558 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008058/0.8515, allocations: 426.8 kB / 0.9562 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.569e-05/0.8517, allocations: 5 kB / 0.9562 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.418e-05/0.8517, allocations: 3.938 kB / 0.9562 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001061/0.8518, allocations: 14.41 kB / 0.9562 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002089/0.852, allocations: 19.52 kB / 0.9562 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001175/0.8521, allocations: 67.62 kB / 0.9563 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.8523, allocations: 25.91 kB / 0.9563 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001233/0.8524, allocations: 31.19 kB / 0.9563 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.606e-05/0.8525, allocations: 30.69 kB / 0.9564 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.31e-05/0.8525, allocations: 1.469 kB / 0.9564 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.67e-05/0.8526, allocations: 3 kB / 0.9564 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.847e-05/0.8526, allocations: 13.36 kB / 0.9564 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.736e-05/0.8526, allocations: 35.58 kB / 0.9564 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.245e-05/0.8527, allocations: 54.8 kB / 0.9565 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.024e-06/0.8527, allocations: 1.312 kB / 0.9565 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.543e-06/0.8527, allocations: 0 / 0.9565 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.8528, allocations: 0 / 0.9565 GB, free: 6.336 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.0004866/0.8532, allocations: 396.5 kB / 0.9569 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.8533, allocations: 9 kB / 0.9569 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.506e-05/0.8534, allocations: 13.11 kB / 0.9569 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.8535, allocations: 170.3 kB / 0.957 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.8535, allocations: 2.531 kB / 0.957 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.576e-05/0.8535, allocations: 11.03 kB / 0.9571 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/0.8538, allocations: 94.56 kB / 0.9571 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.8538, allocations: 0 / 0.9571 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.8538, allocations: 5.016 kB / 0.9571 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.8538, allocations: 1.062 kB / 0.9571 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001633/0.854, allocations: 62.05 kB / 0.9572 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004645/0.8545, allocations: 335.2 kB / 0.9575 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001306/0.8546, allocations: 53.38 kB / 0.9576 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.7e-05/0.8547, allocations: 32.72 kB / 0.9576 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.829e-05/0.8547, allocations: 9.328 kB / 0.9576 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.208e-05/0.8547, allocations: 35.75 kB / 0.9577 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.283e-06/0.8547, allocations: 0 / 0.9577 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0003403/0.8551, allocations: 117 kB / 0.9578 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.673e-05/0.8551, allocations: 78.14 kB / 0.9578 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.507e-05/0.8552, allocations: 135.2 kB / 0.958 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.406e-05/0.8552, allocations: 25.7 kB / 0.958 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.507e-05/0.8553, allocations: 103.7 kB / 0.9581 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.641e-05/0.8553, allocations: 5.75 kB / 0.9581 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.851e-06/0.8553, allocations: 4 kB / 0.9581 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.416e-05/0.8554, allocations: 318.4 kB / 0.9584 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.366e-05/0.8555, allocations: 28.14 kB / 0.9584 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.361e-05/0.8555, allocations: 43.64 kB / 0.9585 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.579e-05/0.8556, allocations: 23.7 kB / 0.9585 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.8556, allocations: 0 / 0.9585 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001855/0.8558, allocations: 109.8 kB / 0.9586 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.8559, allocations: 5.5 kB / 0.9586 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.8559, allocations: 0 / 0.9586 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.533e-05/0.8559, allocations: 1.375 kB / 0.9586 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/0.856, allocations: 12.23 kB / 0.9586 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.856, allocations: 1.375 kB / 0.9586 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.348e-05/0.8561, allocations: 18.95 kB / 0.9586 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.876e-06/0.8561, allocations: 1.344 kB / 0.9586 GB, free: 4.277 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 ($PRE.chiSwi.hysteresis.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.77e-05/0.8562, allocations: 113.8 kB / 0.9587 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.962e-05/0.8562, allocations: 11.86 kB / 0.9588 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.952e-05/0.8563, allocations: 13.89 kB / 0.9588 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.8563, allocations: 1.906 kB / 0.9588 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.8563, allocations: 0 / 0.9588 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.8563, allocations: 3.938 kB / 0.9588 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001468/0.8564, allocations: 195.2 kB / 0.959 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.8564, allocations: 0.8125 kB / 0.959 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.014e-05/0.8565, allocations: 13 kB / 0.959 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.8565, allocations: 0 / 0.959 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.8565, allocations: 9.219 kB / 0.959 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.8565, allocations: 0 / 0.959 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.8566, allocations: 0.9688 kB / 0.959 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002046/0.8568, allocations: 190.5 kB / 0.9592 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.885e-05/0.8568, allocations: 81.95 kB / 0.9592 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.207e-05/0.8568, allocations: 1.125 kB / 0.9592 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.8569, allocations: 23.06 kB / 0.9593 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.015e-05/0.857, allocations: 7.547 kB / 0.9593 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.571e-06/0.857, allocations: 5.625 kB / 0.9593 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.043e-05/0.8571, allocations: 104.7 kB / 0.9594 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8571, allocations: 0 / 0.9594 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000228/0.8573, allocations: 11.69 kB / 0.9594 GB, free: 3.527 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001254/0.8574, allocations: 101.1 kB / 0.9595 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002171/0.8577, allocations: 70.33 kB / 0.9596 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.8577, allocations: 0 / 0.9596 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.759e-05/0.8578, allocations: 31.77 kB / 0.9596 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002883/0.8581, allocations: 6.172 kB / 0.9596 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003735/0.8584, allocations: 206 kB / 0.9598 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001346/0.8586, allocations: 0.6903 MB / 0.9605 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.358e-05/0.8586, allocations: 2.344 kB / 0.9605 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.452e-05/0.8587, allocations: 9.75 kB / 0.9605 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.8587, allocations: 4 kB / 0.9605 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of Templates: time 0.003057/0.8617, allocations: 0.7174 MB / 0.9612 GB, free: 2.125 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