Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001194/0.001194, allocations: 105.5 kB / 16.41 MB, free: 6.461 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.001223/0.001223, allocations: 187 kB / 17.34 MB, free: 5.719 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.361/1.361, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.411/2.411, allocations: 437.1 MB / 0.7112 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 71.88 kB / 1.019 GB, free: 9.391 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9634/0.9649, allocations: 151.6 MB / 1.167 GB, free: 3.848 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.003333/0.9683, allocations: 1.424 MB / 1.169 GB, free: 2.414 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009163/0.9692, allocations: 399 kB / 1.169 GB, free: 2.02 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.775e-05/0.9693, allocations: 0 / 1.169 GB, free: 2.02 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.018e-05/0.9694, allocations: 11.92 kB / 1.169 GB, free: 2.008 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.669e-05/0.9695, allocations: 0 / 1.169 GB, free: 2.008 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.00021/0.9697, allocations: 3.938 kB / 1.169 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001144/0.9698, allocations: 31.92 kB / 1.169 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.9699, allocations: 3.984 kB / 1.169 GB, free: 1.969 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001423/0.9701, allocations: 15.98 kB / 1.169 GB, free: 1.953 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.77e-05/0.9702, allocations: 15.92 kB / 1.169 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.724e-05/0.9702, allocations: 0 / 1.169 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.29e-05/0.9702, allocations: 4 kB / 1.169 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.049e-05/0.9702, allocations: 3.938 kB / 1.169 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.944e-05/0.9703, allocations: 7.938 kB / 1.169 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.9704, allocations: 23.95 kB / 1.169 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.383e-06/0.9704, allocations: 7.938 kB / 1.169 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.334e-06/0.9704, allocations: 0 / 1.169 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.9704, allocations: 0 / 1.169 GB, free: 1.891 MB / 0.8887 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.0005486/0.971, allocations: 339.2 kB / 1.17 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.9711, allocations: 8.031 kB / 1.17 GB, free: 1.508 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.49e-05/0.9711, allocations: 8.938 kB / 1.17 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001646/0.9713, allocations: 168.3 kB / 1.17 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.9713, allocations: 384 / 1.17 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.385e-05/0.9713, allocations: 4.375 kB / 1.17 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001908/0.9715, allocations: 46 kB / 1.17 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.9715, allocations: 0 / 1.17 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.9716, allocations: 4 kB / 1.17 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.9716, allocations: 3.984 kB / 1.17 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001103/0.9717, allocations: 15.98 kB / 1.17 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004681/0.9722, allocations: 256.8 kB / 1.17 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001002/0.9723, allocations: 30.58 kB / 1.17 GB, free: 0.8789 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.75e-05/0.9724, allocations: 20.91 kB / 1.17 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.9724, allocations: 0 / 1.17 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.9724, allocations: 30.56 kB / 1.17 GB, free: 0.8164 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.9724, allocations: 0 / 1.17 GB, free: 0.8164 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0002833/0.9727, allocations: 65.7 kB / 1.17 GB, free: 0.7461 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.727e-05/0.9728, allocations: 59.44 kB / 1.17 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.9729, allocations: 97.86 kB / 1.17 GB, free: 0.5703 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.9729, allocations: 25.7 kB / 1.17 GB, free: 0.5391 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 5.322e-05/0.973, allocations: 88.12 kB / 1.17 GB, free: 460 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.421e-05/0.973, allocations: 9.672 kB / 1.17 GB, free: 452 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.689e-05/0.9731, allocations: 21.72 kB / 1.17 GB, free: 424 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.9732, allocations: 310.8 kB / 1.171 GB, free: 104 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.575e-05/0.9733, allocations: 15.98 kB / 1.171 GB, free: 88 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.235e-05/0.9733, allocations: 8 kB / 1.171 GB, free: 80 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.679e-05/0.9734, allocations: 28.78 kB / 1.171 GB, free: 48 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.9734, allocations: 0 / 1.171 GB, free: 48 kB / 0.8887 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001454/0.9736, allocations: 61.52 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.9736, allocations: 4 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.9736, allocations: 0 / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.9736, allocations: 4.094 kB / 1.171 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.772e-05/0.9737, allocations: 7.938 kB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.9737, allocations: 0 / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.788e-05/0.9738, allocations: 4 kB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.9738, allocations: 3.984 kB / 1.171 GB, free: 15.96 MB / 0.9044 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.087e-05/0.9739, allocations: 113.8 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.72e-05/0.9739, allocations: 4 kB / 1.171 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.714e-05/0.974, allocations: 3.531 kB / 1.171 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.974, allocations: 4 kB / 1.171 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.974, allocations: 0 / 1.171 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.974, allocations: 0 / 1.171 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001795/0.9742, allocations: 165.6 kB / 1.171 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.9742, allocations: 256 / 1.171 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.449e-05/0.9742, allocations: 8 kB / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.9742, allocations: 0 / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.9742, allocations: 0 / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.9742, allocations: 0 / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.9743, allocations: 0 / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001636/0.9744, allocations: 159.4 kB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.545e-05/0.9745, allocations: 85.02 kB / 1.171 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.16e-05/0.9745, allocations: 0 / 1.171 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.666e-05/0.9746, allocations: 0 / 1.171 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.199e-05/0.9746, allocations: 7.984 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.9746, allocations: 0 / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.251e-05/0.9747, allocations: 83.28 kB / 1.171 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9747, allocations: 4.031 kB / 1.171 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002103/0.9749, allocations: 4 kB / 1.171 GB, free: 15.23 MB / 0.9044 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.0001221/0.975, allocations: 95.25 kB / 1.172 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001384/0.9751, allocations: 27.92 kB / 1.172 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.9752, allocations: 0 / 1.172 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 4.376e-05/0.9752, allocations: 15.98 kB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/0.9754, allocations: 15.75 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003361/0.9758, allocations: 140.4 kB / 1.172 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/0.976, allocations: 0.6768 MB / 1.172 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.411e-05/0.9761, allocations: 11.44 kB / 1.172 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of SimCode: time 3.61e-07/0.9761, allocations: 0 / 1.172 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of Templates: time 0.001761/0.9779, allocations: 0.513 MB / 1.173 GB, free: 13.68 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches