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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.01063/0.01063, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.001468/0.001468, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.617/2.617, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 68.12 kB / 1.054 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8984/0.9001, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002783/0.9029, allocations: 1.435 MB / 1.209 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008281/0.9037, allocations: 395.1 kB / 1.209 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5e-05/0.9038, allocations: 0 / 1.209 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.043e-05/0.9039, allocations: 3.938 kB / 1.209 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.698e-05/0.904, allocations: 3.938 kB / 1.209 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001699/0.9041, allocations: 11.98 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.964e-05/0.9042, allocations: 15.94 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.9043, allocations: 11.98 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.694e-05/0.9044, allocations: 15.92 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.195e-05/0.9045, allocations: 11.98 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.381e-05/0.9045, allocations: 0 / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.813e-06/0.9045, allocations: 4 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.61e-05/0.9046, allocations: 3.938 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.244e-05/0.9046, allocations: 15.92 kB / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 7.579e-05/0.9047, allocations: 19.86 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.9047, allocations: 0 / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.653e-06/0.9047, allocations: 4 kB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.997e-06/0.9047, allocations: 0 / 1.21 GB, free: 11.66 MB / 0.9356 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.0004251/0.9051, allocations: 339.3 kB / 1.21 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.9052, allocations: 12.03 kB / 1.21 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.734e-05/0.9052, allocations: 0.9375 kB / 1.21 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.9053, allocations: 164.3 kB / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.9054, allocations: 4.375 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.479e-05/0.9054, allocations: 384 / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001363/0.9055, allocations: 50 kB / 1.21 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.9055, allocations: 0 / 1.21 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-06/0.9055, allocations: 0 / 1.21 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.9056, allocations: 3.984 kB / 1.21 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.824e-05/0.9057, allocations: 23.92 kB / 1.21 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000363/0.906, allocations: 248.9 kB / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 8.68e-05/0.9061, allocations: 38.55 kB / 1.21 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.194e-05/0.9062, allocations: 16.92 kB / 1.21 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.603e-05/0.9062, allocations: 0 / 1.21 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.102e-05/0.9062, allocations: 34.56 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 8.11e-07/0.9062, allocations: 0 / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0002269/0.9065, allocations: 69.55 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.9065, allocations: 55.53 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.483e-05/0.9066, allocations: 105.8 kB / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.373e-05/0.9066, allocations: 25.7 kB / 1.211 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.518e-05/0.9067, allocations: 80.14 kB / 1.211 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.919e-05/0.9067, allocations: 9.734 kB / 1.211 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.384e-05/0.9067, allocations: 17.72 kB / 1.211 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.9069, allocations: 314.8 kB / 1.211 GB, free: 9.875 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.254e-05/0.9069, allocations: 12 kB / 1.211 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.151e-05/0.9069, allocations: 11.98 kB / 1.211 GB, free: 9.852 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.816e-05/0.907, allocations: 32.72 kB / 1.211 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.907, allocations: 0 / 1.211 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001195/0.9072, allocations: 53.59 kB / 1.211 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.9072, allocations: 4 kB / 1.211 GB, free: 9.754 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.9072, allocations: 0 / 1.211 GB, free: 9.754 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.9072, allocations: 3.938 kB / 1.211 GB, free: 9.75 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.55e-05/0.9073, allocations: 16.08 kB / 1.211 GB, free: 9.734 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.9073, allocations: 0 / 1.211 GB, free: 9.734 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.086e-05/0.9073, allocations: 0 / 1.211 GB, free: 9.734 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.9074, allocations: 0 / 1.211 GB, free: 9.734 MB / 0.9356 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 7.74e-05/0.9074, allocations: 117.8 kB / 1.211 GB, free: 9.609 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.305e-05/0.9075, allocations: 0 / 1.211 GB, free: 9.609 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.297e-05/0.9075, allocations: 3.531 kB / 1.211 GB, free: 9.598 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.9075, allocations: 4 kB / 1.211 GB, free: 9.594 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.9075, allocations: 0 / 1.211 GB, free: 9.594 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.9075, allocations: 8.234 kB / 1.211 GB, free: 9.586 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001675/0.9077, allocations: 157.6 kB / 1.212 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.9077, allocations: 4 kB / 1.212 GB, free: 9.379 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.786e-05/0.9078, allocations: 7.938 kB / 1.212 GB, free: 9.371 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.9078, allocations: 0 / 1.212 GB, free: 9.371 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.868e-06/0.9078, allocations: 7.984 kB / 1.212 GB, free: 9.363 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.9078, allocations: 4 kB / 1.212 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.9078, allocations: 0 / 1.212 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.908, allocations: 147.5 kB / 1.212 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.306e-05/0.908, allocations: 81.02 kB / 1.212 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.132e-05/0.908, allocations: 0 / 1.212 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.307e-05/0.9081, allocations: 7.984 kB / 1.212 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.084e-05/0.9081, allocations: 0 / 1.212 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-06/0.9081, allocations: 0 / 1.212 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.502e-05/0.9082, allocations: 83.28 kB / 1.212 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9082, allocations: 0 / 1.212 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000214/0.9084, allocations: 8.031 kB / 1.212 GB, free: 9.004 MB / 0.9356 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 9.852e-05/0.9085, allocations: 107.2 kB / 1.212 GB, free: 8.891 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001256/0.9087, allocations: 23.92 kB / 1.212 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.9087, allocations: 0 / 1.212 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 4.156e-05/0.9087, allocations: 12 kB / 1.212 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000208/0.9089, allocations: 10.06 kB / 1.212 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002948/0.9092, allocations: 122.7 kB / 1.212 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002518/0.9095, allocations: 0.6729 MB / 1.213 GB, free: 8 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.619e-05/0.9095, allocations: 3.984 kB / 1.213 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.569e-05/0.9096, allocations: 15.38 kB / 1.213 GB, free: 7.98 MB / 0.9356 GB Notification: Performance of SimCode: time 2.41e-07/0.9096, allocations: 3.938 kB / 1.213 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of Templates: time 0.002233/0.9118, allocations: 312.6 kB / 1.213 GB, free: 7.676 MB / 0.9356 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