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.001313/0.001313, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 196.8 kB / 16.79 MB, free: 6.809 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.354/1.354, allocations: 222.9 MB / 240.5 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.705/2.705, allocations: 461.9 MB / 0.7348 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 60.39 kB / 0.899 GB, free: 37.06 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.302, allocations: 157.4 MB / 1.053 GB, free: 8.34 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002978/0.305, allocations: 1.504 MB / 1.054 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006426/0.3057, allocations: 402.9 kB / 1.055 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.002e-05/0.3058, allocations: 0 / 1.055 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.309e-05/0.3058, allocations: 0 / 1.055 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.533e-05/0.3059, allocations: 0 / 1.055 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001567/0.3061, allocations: 19.92 kB / 1.055 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.925e-05/0.3061, allocations: 19.94 kB / 1.055 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.3063, allocations: 4 kB / 1.055 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.3064, allocations: 19.91 kB / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.912e-05/0.3064, allocations: 15.92 kB / 1.055 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.445e-05/0.3065, allocations: 0 / 1.055 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.178e-05/0.3065, allocations: 4 kB / 1.055 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.551e-05/0.3065, allocations: 0 / 1.055 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.232e-05/0.3065, allocations: 11.94 kB / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.384e-05/0.3066, allocations: 15.97 kB / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3066, allocations: 0 / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.41e-07/0.3066, allocations: 0 / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.133e-06/0.3066, allocations: 0 / 1.055 GB, free: 6.316 MB / 0.8106 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.0004244/0.3071, allocations: 339.7 kB / 1.055 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.3071, allocations: 8.031 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.149e-05/0.3071, allocations: 0.9375 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001245/0.3073, allocations: 172.3 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.3073, allocations: 384 / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.118e-05/0.3073, allocations: 4.312 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001412/0.3074, allocations: 46 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.3075, allocations: 0 / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.3075, allocations: 0 / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.3075, allocations: 4 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.826e-05/0.3076, allocations: 19.98 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003515/0.3079, allocations: 248.9 kB / 1.056 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.97e-05/0.308, allocations: 34.5 kB / 1.056 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.509e-05/0.3081, allocations: 20.91 kB / 1.056 GB, free: 5.285 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.664e-05/0.3081, allocations: 4 kB / 1.056 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.043e-05/0.3082, allocations: 30.56 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 2.394e-06/0.3082, allocations: 0 / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002497/0.3084, allocations: 57.62 kB / 1.056 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/0.3085, allocations: 51.41 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.4e-05/0.3085, allocations: 113.8 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.3086, allocations: 25.7 kB / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.047e-05/0.3086, allocations: 92.27 kB / 1.056 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.917e-05/0.3086, allocations: 15.77 kB / 1.056 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.18e-05/0.3087, allocations: 9.719 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.3088, allocations: 318.8 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.089e-05/0.3088, allocations: 7.984 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.314e-05/0.3089, allocations: 8 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.271e-05/0.309, allocations: 32.84 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.309, allocations: 0 / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000116/0.3091, allocations: 49.69 kB / 1.056 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.3091, allocations: 8.938 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3091, allocations: 0 / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.3092, allocations: 3.984 kB / 1.056 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.683e-05/0.3092, allocations: 7.938 kB / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.3092, allocations: 0 / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.009e-05/0.3093, allocations: 0 / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-06/0.3093, allocations: 8.031 kB / 1.056 GB, free: 4.387 MB / 0.8106 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.003e-05/0.3094, allocations: 109.8 kB / 1.056 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.725e-05/0.3094, allocations: 12.14 kB / 1.056 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.204e-05/0.3094, allocations: 7.531 kB / 1.056 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.3094, allocations: 0 / 1.056 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3094, allocations: 4 kB / 1.056 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.3095, allocations: 0 / 1.056 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001551/0.3096, allocations: 157.6 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3096, allocations: 0 / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.551e-05/0.3097, allocations: 15.98 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3097, allocations: 0 / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.3097, allocations: 0 / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.3097, allocations: 0 / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3097, allocations: 0 / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001703/0.3099, allocations: 155.4 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.041e-05/0.3099, allocations: 81.09 kB / 1.057 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.31, allocations: 8.031 kB / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.837e-05/0.31, allocations: 3.938 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.999e-05/0.3101, allocations: 0 / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.3101, allocations: 4 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.187e-05/0.3101, allocations: 87.27 kB / 1.057 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3101, allocations: 0 / 1.057 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002127/0.3103, allocations: 7.906 kB / 1.057 GB, free: 3.652 MB / 0.8106 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.0001195/0.3105, allocations: 95.25 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001231/0.3106, allocations: 23.98 kB / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3106, allocations: 0 / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.038e-05/0.3107, allocations: 15.92 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002181/0.3109, allocations: 17.59 kB / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003143/0.3112, allocations: 134.3 kB / 1.057 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002482/0.3115, allocations: 0.6848 MB / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.702e-05/0.3115, allocations: 7.438 kB / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of SimCode: time 3.01e-07/0.3115, allocations: 0 / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of Templates: time 0.001856/0.3134, allocations: 0.5048 MB / 1.058 GB, free: 2.109 MB / 0.8106 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/jenkins1/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