Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001865/0.001865, allocations: 83.69 kB / 20.23 MB, free: 4.184 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001971/0.001971, allocations: 165.3 kB / 23.55 MB, free: 0.8672 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.557/1.557, allocations: 177.1 MB / 203.9 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.016/3.016, allocations: 377.8 MB / 0.6232 GB, free: 8.504 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|kMinU.u|kMinU.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|kMinU.u|kMinU.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 0.8108 GB, free: 2.109 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.591e-05/2.772e-05, allocations: 4.703 kB / 0.8108 GB, free: 2.105 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.003057/0.003085, allocations: 1.469 MB / 0.8122 GB, free: 0.6484 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0008731/0.003958, allocations: 453.9 kB / 0.8127 GB, free: 208 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.692e-05/0.004015, allocations: 7.938 kB / 0.8127 GB, free: 200 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.018e-05/0.004035, allocations: 0 / 0.8127 GB, free: 200 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 4.892e-05/0.004084, allocations: 5.844 kB / 0.8127 GB, free: 196 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001867/0.004271, allocations: 19.95 kB / 0.8127 GB, free: 176 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 9.872e-05/0.00437, allocations: 27.88 kB / 0.8127 GB, free: 148 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 7.122e-05/0.004441, allocations: 3.984 kB / 0.8127 GB, free: 144 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.004577, allocations: 31.91 kB / 0.8128 GB, free: 112 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 4.404e-05/0.004621, allocations: 5.5 kB / 0.8128 GB, free: 108 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 1.354e-05/0.004635, allocations: 4 kB / 0.8128 GB, free: 104 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 3.796e-05/0.004673, allocations: 4 kB / 0.8128 GB, free: 100 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 1.594e-05/0.004689, allocations: 7.984 kB / 0.8128 GB, free: 92 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 1.951e-05/0.004708, allocations: 5.344 kB / 0.8128 GB, free: 88 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.004825, allocations: 35.83 kB / 0.8128 GB, free: 52 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.004827, allocations: 0 / 0.8128 GB, free: 52 kB / 0.7605 GB Notification: Performance of FrontEnd: time 7.72e-07/0.004828, allocations: 0 / 0.8128 GB, free: 52 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 3.847e-06/0.004832, allocations: 1.938 kB / 0.8128 GB, free: 52 kB / 0.7605 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004892/0.005321, allocations: 360.2 kB / 0.8132 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.005362, allocations: 12.03 kB / 0.8132 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/0.005506, allocations: 12.92 kB / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001687/0.005674, allocations: 118.7 kB / 0.8133 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.499e-05/0.005699, allocations: 4.375 kB / 0.8133 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.414e-06/0.005707, allocations: 384 / 0.8133 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001214/0.005828, allocations: 42.19 kB / 0.8133 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.005836, allocations: 192 / 0.8133 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.005848, allocations: 4.375 kB / 0.8133 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.005853, allocations: 4.469 kB / 0.8134 GB, free: 15.44 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.34e-05/0.005926, allocations: 12.7 kB / 0.8134 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003386/0.006265, allocations: 252.4 kB / 0.8136 GB, free: 15.15 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 9.62e-05/0.006361, allocations: 40.58 kB / 0.8136 GB, free: 15.1 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.976e-05/0.006421, allocations: 19.75 kB / 0.8137 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.466e-05/0.006436, allocations: 0 / 0.8137 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.734e-05/0.006473, allocations: 41.86 kB / 0.8137 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=2): time 6.71e-07/0.006474, allocations: 0 / 0.8137 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of matching and sorting (n=2): time 0.0002367/0.00671, allocations: 58.95 kB / 0.8138 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.006756, allocations: 51.41 kB / 0.8138 GB, free: 14.9 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.006897, allocations: 171.1 kB / 0.814 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.006916, allocations: 29.64 kB / 0.814 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.788e-05/0.007004, allocations: 134.8 kB / 0.8141 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.099e-05/0.007025, allocations: 17.25 kB / 0.8141 GB, free: 14.53 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.255e-05/0.007068, allocations: 19.38 kB / 0.8142 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002588/0.007326, allocations: 496.1 kB / 0.8146 GB, free: 14 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.423e-05/0.007371, allocations: 11.98 kB / 0.8146 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.617e-05/0.007397, allocations: 5 kB / 0.8147 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.794e-05/0.007465, allocations: 24.38 kB / 0.8147 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.007466, allocations: 1.031 kB / 0.8147 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001204/0.007587, allocations: 45.69 kB / 0.8147 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.851e-05/0.007605, allocations: 15.28 kB / 0.8147 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.007609, allocations: 0 / 0.8147 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.00762, allocations: 1.531 kB / 0.8147 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.852e-05/0.007689, allocations: 11.92 kB / 0.8147 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.007693, allocations: 320 / 0.8147 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.609e-05/0.007719, allocations: 0 / 0.8147 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-06/0.007724, allocations: 1 kB / 0.8148 GB, free: 13.89 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001161/0.00784, allocations: 160.6 kB / 0.8149 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.774e-05/0.007867, allocations: 9.953 kB / 0.8149 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.396e-05/0.007891, allocations: 11.61 kB / 0.8149 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.007893, allocations: 0 / 0.8149 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.007896, allocations: 0 / 0.8149 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-06/0.007898, allocations: 0 / 0.8149 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001607/0.008059, allocations: 120.6 kB / 0.815 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.008059, allocations: 2.281 kB / 0.815 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.524e-05/0.008105, allocations: 11.98 kB / 0.8151 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.008106, allocations: 0 / 0.8151 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.00812, allocations: 7.922 kB / 0.8151 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.008121, allocations: 0 / 0.8151 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.008124, allocations: 3.984 kB / 0.8151 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002089/0.008333, allocations: 196.4 kB / 0.8153 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.181e-05/0.008344, allocations: 4.531 kB / 0.8153 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/0.008359, allocations: 5.281 kB / 0.8153 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.63e-05/0.008415, allocations: 3.984 kB / 0.8153 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.004e-05/0.008455, allocations: 4 kB / 0.8153 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.125e-06/0.008458, allocations: 4 kB / 0.8153 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 7.765e-05/0.008536, allocations: 127.6 kB / 0.8154 GB, free: 13.17 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.008536, allocations: 0.5938 kB / 0.8154 GB, free: 13.17 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002057/0.008741, allocations: 8.609 kB / 0.8154 GB, free: 13.16 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001242/0.008866, allocations: 103.9 kB / 0.8155 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001294/0.008995, allocations: 31.02 kB / 0.8155 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.008997, allocations: 0 / 0.8155 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.88e-05/0.009045, allocations: 19.62 kB / 0.8155 GB, free: 13 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002021/0.009247, allocations: 3.938 kB / 0.8156 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000329/0.009576, allocations: 126.4 kB / 0.8157 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.559e-05/0.009652, allocations: 69.48 kB / 0.8157 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.119e-05/0.009673, allocations: 0 / 0.8157 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.98e-05/0.009703, allocations: 12.5 kB / 0.8158 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of SimCode: time 4.81e-07/0.009703, allocations: 0 / 0.8158 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of Templates: time 0.00278/0.01248, allocations: 334.7 kB / 0.8161 GB, free: 12.43 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.934027031995356]