Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001854/0.001854, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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.00206/0.00206, allocations: 214.4 kB / 22.24 MB, free: 5.262 MB / 14.72 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.454/1.454, allocations: 230.6 MB / 256 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.294/3.294, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0021/0.0021, allocations: 65.66 kB / 1.186 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.3408, allocations: 181.9 MB / 1.364 GB, free: 13.62 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002672/0.3435, allocations: 1.451 MB / 1.365 GB, free: 12.16 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0008115/0.3443, allocations: 432 kB / 1.366 GB, free: 11.73 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.695e-05/0.3443, allocations: 4 kB / 1.366 GB, free: 11.73 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.994e-05/0.3444, allocations: 0 / 1.366 GB, free: 11.73 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.775e-05/0.3444, allocations: 3.938 kB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002329/0.3446, allocations: 23.92 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001036/0.3447, allocations: 27.91 kB / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.3448, allocations: 11.98 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000126/0.345, allocations: 19.88 kB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.11e-05/0.345, allocations: 11.92 kB / 1.366 GB, free: 11.63 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.583e-05/0.345, allocations: 4 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 4.434e-05/0.3451, allocations: 4 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.3e-05/0.3451, allocations: 7.984 kB / 1.366 GB, free: 11.61 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.312e-05/0.3451, allocations: 7.938 kB / 1.366 GB, free: 11.61 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001002/0.3452, allocations: 31.84 kB / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.3452, allocations: 4 kB / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.212e-06/0.3452, allocations: 0 / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.23e-06/0.3452, allocations: 0 / 1.366 GB, free: 11.57 MB / 1.061 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.0004154/0.3456, allocations: 262.3 kB / 1.366 GB, free: 11.29 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.3457, allocations: 8.031 kB / 1.366 GB, free: 11.28 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001436/0.3458, allocations: 12.92 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002025/0.346, allocations: 110.5 kB / 1.366 GB, free: 11.13 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.346, allocations: 8.359 kB / 1.366 GB, free: 11.12 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.289e-05/0.3461, allocations: 384 / 1.366 GB, free: 11.12 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001489/0.3462, allocations: 57.92 kB / 1.366 GB, free: 11.06 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.3462, allocations: 0 / 1.366 GB, free: 11.06 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.835e-06/0.3462, allocations: 0 / 1.366 GB, free: 11.06 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.3462, allocations: 0 / 1.366 GB, free: 11.06 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.227e-05/0.3463, allocations: 19.98 kB / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000286/0.3466, allocations: 192.6 kB / 1.366 GB, free: 10.82 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 8.911e-05/0.3467, allocations: 38.48 kB / 1.367 GB, free: 10.78 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.5e-05/0.3467, allocations: 24.84 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 9.909e-06/0.3467, allocations: 4 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.3468, allocations: 38.5 kB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.3468, allocations: 0 / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.000238/0.347, allocations: 57.64 kB / 1.367 GB, free: 10.64 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.347, allocations: 51.41 kB / 1.367 GB, free: 10.57 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.3472, allocations: 105.8 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.3472, allocations: 25.7 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.455e-05/0.3472, allocations: 92.12 kB / 1.367 GB, free: 10.34 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.802e-05/0.3472, allocations: 7.891 kB / 1.367 GB, free: 10.33 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.741e-05/0.3473, allocations: 21.84 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001437/0.3474, allocations: 314.8 kB / 1.367 GB, free: 9.984 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.953e-05/0.3475, allocations: 7.984 kB / 1.367 GB, free: 9.977 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.325e-05/0.3475, allocations: 12 kB / 1.367 GB, free: 9.965 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.734e-05/0.3476, allocations: 28.84 kB / 1.367 GB, free: 9.934 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3476, allocations: 0 / 1.367 GB, free: 9.934 MB / 1.061 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001162/0.3477, allocations: 57.61 kB / 1.367 GB, free: 9.871 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.3477, allocations: 8.094 kB / 1.367 GB, free: 9.863 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.3477, allocations: 0 / 1.367 GB, free: 9.863 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.3477, allocations: 0 / 1.367 GB, free: 9.863 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.055e-05/0.3478, allocations: 4 kB / 1.367 GB, free: 9.859 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.3478, allocations: 3.938 kB / 1.367 GB, free: 9.855 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.975e-05/0.3478, allocations: 4 kB / 1.367 GB, free: 9.852 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.88e-06/0.3478, allocations: 0 / 1.367 GB, free: 9.852 MB / 1.061 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 9.258e-05/0.3479, allocations: 121.8 kB / 1.367 GB, free: 9.723 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.376e-05/0.348, allocations: 3.953 kB / 1.367 GB, free: 9.719 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.225e-05/0.348, allocations: 3.625 kB / 1.367 GB, free: 9.707 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.348, allocations: 8 kB / 1.367 GB, free: 9.699 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.348, allocations: 0 / 1.367 GB, free: 9.699 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.348, allocations: 0 / 1.367 GB, free: 9.699 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001296/0.3481, allocations: 105.3 kB / 1.368 GB, free: 9.566 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.3481, allocations: 3.938 kB / 1.368 GB, free: 9.562 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.987e-05/0.3482, allocations: 4 kB / 1.368 GB, free: 9.559 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.3482, allocations: 0 / 1.368 GB, free: 9.559 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.407e-06/0.3482, allocations: 4 kB / 1.368 GB, free: 9.555 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3482, allocations: 0 / 1.368 GB, free: 9.555 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.3482, allocations: 3.984 kB / 1.368 GB, free: 9.551 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001846/0.3484, allocations: 147.5 kB / 1.368 GB, free: 9.391 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.041e-05/0.3484, allocations: 15.81 kB / 1.368 GB, free: 9.375 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.257e-05/0.3484, allocations: 0 / 1.368 GB, free: 9.375 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.959e-05/0.3485, allocations: 3.984 kB / 1.368 GB, free: 9.371 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.172e-05/0.3485, allocations: 3.938 kB / 1.368 GB, free: 9.367 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.696e-06/0.3485, allocations: 4 kB / 1.368 GB, free: 9.363 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.223e-05/0.3485, allocations: 83.28 kB / 1.368 GB, free: 9.281 MB / 1.061 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3485, allocations: 0 / 1.368 GB, free: 9.281 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002109/0.3487, allocations: 4 kB / 1.368 GB, free: 9.277 MB / 1.061 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.0001205/0.3489, allocations: 105.9 kB / 1.368 GB, free: 9.168 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001259/0.349, allocations: 19.98 kB / 1.368 GB, free: 9.148 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.349, allocations: 4 kB / 1.368 GB, free: 9.145 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 3.897e-05/0.349, allocations: 8 kB / 1.368 GB, free: 9.137 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002157/0.3493, allocations: 9.656 kB / 1.368 GB, free: 9.129 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003141/0.3496, allocations: 122.9 kB / 1.368 GB, free: 8.984 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.593e-05/0.3496, allocations: 63.48 kB / 1.368 GB, free: 8.902 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.086e-05/0.3497, allocations: 7.969 kB / 1.368 GB, free: 8.895 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.839e-05/0.3497, allocations: 11.44 kB / 1.368 GB, free: 8.883 MB / 1.061 GB Notification: Performance of SimCode: time 2.8e-07/0.3497, allocations: 0 / 1.368 GB, free: 8.883 MB / 1.061 GB Notification: Performance of Templates: time 0.002504/0.3522, allocations: 327.6 kB / 1.368 GB, free: 8.566 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.712000831961632]