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.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.KMinusU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|kMinU.u|kMinU.y",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.00891/0.00891, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.526/1.526, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.792/2.792, allocations: 443.3 MB / 0.7175 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004016/0.0004017, allocations: 8.469 kB / 0.8796 GB, free: 41.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2983, allocations: 155.2 MB / 1.031 GB, free: 4.293 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002042/0.3004, allocations: 1.148 MB / 1.032 GB, free: 3.137 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0007019/0.3011, allocations: 399.4 kB / 1.033 GB, free: 2.742 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.1e-05/0.3012, allocations: 0 / 1.033 GB, free: 2.742 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.844e-05/0.3012, allocations: 3.938 kB / 1.033 GB, free: 2.738 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.596e-05/0.3013, allocations: 7.984 kB / 1.033 GB, free: 2.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000148/0.3014, allocations: 11.98 kB / 1.033 GB, free: 2.719 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.324e-05/0.3015, allocations: 19.94 kB / 1.033 GB, free: 2.699 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.3016, allocations: 7.938 kB / 1.033 GB, free: 2.691 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.921e-05/0.3017, allocations: 19.92 kB / 1.033 GB, free: 2.672 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.113e-05/0.3018, allocations: 4 kB / 1.033 GB, free: 2.668 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.36e-05/0.3018, allocations: 4 kB / 1.033 GB, free: 2.664 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.496e-06/0.3018, allocations: 0 / 1.033 GB, free: 2.664 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.077e-05/0.3019, allocations: 11.91 kB / 1.033 GB, free: 2.652 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.945e-05/0.3019, allocations: 33.64 kB / 1.033 GB, free: 2.613 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.849e-05/0.302, allocations: 23.91 kB / 1.033 GB, free: 2.59 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.302, allocations: 0 / 1.033 GB, free: 2.59 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.583e-06/0.302, allocations: 0 / 1.033 GB, free: 2.59 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.628e-06/0.302, allocations: 0 / 1.033 GB, free: 2.59 MB / 0.7794 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.0004042/0.3024, allocations: 327.8 kB / 1.033 GB, free: 2.223 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.3025, allocations: 8.031 kB / 1.033 GB, free: 2.215 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.213e-05/0.3025, allocations: 8.844 kB / 1.033 GB, free: 2.207 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001382/0.3027, allocations: 168.4 kB / 1.033 GB, free: 2.004 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.3027, allocations: 4.375 kB / 1.033 GB, free: 2 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.408e-06/0.3027, allocations: 4.375 kB / 1.033 GB, free: 1.996 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001576/0.3029, allocations: 53.92 kB / 1.033 GB, free: 1.938 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.3029, allocations: 0 / 1.033 GB, free: 1.938 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.3029, allocations: 0 / 1.033 GB, free: 1.938 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.3029, allocations: 0 / 1.033 GB, free: 1.938 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.578e-05/0.303, allocations: 23.98 kB / 1.033 GB, free: 1.914 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003631/0.3034, allocations: 252.9 kB / 1.034 GB, free: 1.617 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.015e-05/0.3035, allocations: 30.61 kB / 1.034 GB, free: 1.578 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.893e-05/0.3036, allocations: 24.84 kB / 1.034 GB, free: 1.551 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.3036, allocations: 4 kB / 1.034 GB, free: 1.547 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.3036, allocations: 34.56 kB / 1.034 GB, free: 1.504 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.3036, allocations: 0 / 1.034 GB, free: 1.504 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0002622/0.3039, allocations: 65.58 kB / 1.034 GB, free: 1.434 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.3039, allocations: 55.41 kB / 1.034 GB, free: 1.367 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.613e-05/0.304, allocations: 113.9 kB / 1.034 GB, free: 1.246 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.3041, allocations: 25.7 kB / 1.034 GB, free: 1.215 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.322e-05/0.3041, allocations: 92.06 kB / 1.034 GB, free: 1.121 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.541e-05/0.3041, allocations: 3.906 kB / 1.034 GB, free: 1.117 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.358e-05/0.3042, allocations: 9.719 kB / 1.034 GB, free: 1.102 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.3043, allocations: 318.8 kB / 1.034 GB, free: 0.7812 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.021e-05/0.3043, allocations: 11.92 kB / 1.034 GB, free: 0.7695 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.114e-05/0.3044, allocations: 12 kB / 1.034 GB, free: 0.7578 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.026e-05/0.3045, allocations: 32.78 kB / 1.034 GB, free: 0.7227 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3045, allocations: 0 / 1.034 GB, free: 0.7227 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000142/0.3046, allocations: 53.69 kB / 1.034 GB, free: 0.6641 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.3047, allocations: 4 kB / 1.034 GB, free: 0.6602 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.3047, allocations: 8.031 kB / 1.034 GB, free: 0.6523 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.3047, allocations: 7.984 kB / 1.034 GB, free: 0.6445 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.519e-05/0.3048, allocations: 4 kB / 1.034 GB, free: 0.6406 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.3048, allocations: 0 / 1.034 GB, free: 0.6406 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.4e-05/0.3048, allocations: 11.94 kB / 1.034 GB, free: 0.6289 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.558e-06/0.3048, allocations: 0 / 1.034 GB, free: 0.6289 MB / 0.7794 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 8.226e-05/0.3049, allocations: 115.2 kB / 1.035 GB, free: 0.5078 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.409e-05/0.3049, allocations: 7.984 kB / 1.035 GB, free: 0.5 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.159e-05/0.305, allocations: 7.531 kB / 1.035 GB, free: 0.4922 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.305, allocations: 0 / 1.035 GB, free: 0.4922 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.305, allocations: 0 / 1.035 GB, free: 0.4922 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.305, allocations: 0 / 1.035 GB, free: 0.4922 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001627/0.3052, allocations: 173.5 kB / 1.035 GB, free: 280 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.3052, allocations: 0 / 1.035 GB, free: 280 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.177e-05/0.3052, allocations: 7.984 kB / 1.035 GB, free: 272 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-06/0.3052, allocations: 0 / 1.035 GB, free: 272 kB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.3052, allocations: 0 / 1.035 GB, free: 272 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3052, allocations: 0 / 1.035 GB, free: 272 kB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3052, allocations: 0 / 1.035 GB, free: 272 kB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001567/0.3054, allocations: 155.5 kB / 1.035 GB, free: 100 kB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.99e-05/0.3055, allocations: 81.09 kB / 1.035 GB, free: 0 / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.3055, allocations: 112 / 1.035 GB, free: 16 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.333e-05/0.3056, allocations: 11.94 kB / 1.035 GB, free: 15.98 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.875e-05/0.3056, allocations: 4.031 kB / 1.035 GB, free: 15.98 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.3056, allocations: 0 / 1.035 GB, free: 15.98 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.508e-05/0.3057, allocations: 83.52 kB / 1.035 GB, free: 15.9 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3057, allocations: 0 / 1.035 GB, free: 15.9 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002062/0.3059, allocations: 4 kB / 1.035 GB, free: 15.89 MB / 0.795 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.0001161/0.306, allocations: 99.25 kB / 1.035 GB, free: 15.79 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001244/0.3061, allocations: 27.98 kB / 1.035 GB, free: 15.76 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3061, allocations: 3.938 kB / 1.035 GB, free: 15.75 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 4.622e-05/0.3062, allocations: 15.98 kB / 1.035 GB, free: 15.74 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002068/0.3064, allocations: 5.625 kB / 1.035 GB, free: 15.73 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000293/0.3067, allocations: 136.3 kB / 1.035 GB, free: 15.58 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002429/0.307, allocations: 0.6812 MB / 1.036 GB, free: 14.87 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.277e-05/0.307, allocations: 4 kB / 1.036 GB, free: 14.87 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.923e-05/0.307, allocations: 7.438 kB / 1.036 GB, free: 14.86 MB / 0.795 GB Notification: Performance of SimCode: time 3.11e-07/0.307, allocations: 0 / 1.036 GB, free: 14.86 MB / 0.795 GB Notification: Performance of Templates: time 0.002122/0.3092, allocations: 282.4 kB / 1.036 GB, free: 14.59 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) 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) Reference file matches