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.007824/0.007824, allocations: 100.7 kB / 15.73 MB, free: 5.555 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.001681/0.001681, allocations: 192.6 kB / 16.67 MB, free: 5.484 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.457/1.457, 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 10.1.1-maint.10.0.x/package.mo): time 2.625/2.625, allocations: 437 MB / 0.7105 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 68.11 kB / 1.019 GB, free: 9.43 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9768/0.978, allocations: 151.6 MB / 1.167 GB, free: 3.895 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002505/0.9805, allocations: 1.43 MB / 1.168 GB, free: 2.457 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0006283/0.9812, allocations: 399.1 kB / 1.168 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.591e-05/0.9812, allocations: 0 / 1.168 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.467e-05/0.9813, allocations: 0 / 1.168 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.089e-05/0.9813, allocations: 7.938 kB / 1.168 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001483/0.9815, allocations: 11.92 kB / 1.168 GB, free: 2.043 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.28e-05/0.9816, allocations: 27.91 kB / 1.168 GB, free: 2.016 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 8.734e-05/0.9816, allocations: 4 kB / 1.168 GB, free: 2.012 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.508e-05/0.9817, allocations: 19.92 kB / 1.168 GB, free: 1.992 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.368e-05/0.9818, allocations: 4 kB / 1.168 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.782e-05/0.9818, allocations: 4 kB / 1.168 GB, free: 1.984 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.556e-06/0.9818, allocations: 0 / 1.168 GB, free: 1.984 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.158e-05/0.9819, allocations: 15.92 kB / 1.168 GB, free: 1.969 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.708e-05/0.9819, allocations: 11.92 kB / 1.168 GB, free: 1.957 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 7.915e-05/0.982, allocations: 23.91 kB / 1.168 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.982, allocations: 0 / 1.168 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.613e-06/0.982, allocations: 0 / 1.168 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.495e-06/0.982, allocations: 0 / 1.168 GB, free: 1.934 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.0004057/0.9824, allocations: 343.9 kB / 1.169 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.9825, allocations: 8.031 kB / 1.169 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.398e-05/0.9825, allocations: 0.9375 kB / 1.169 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.9826, allocations: 168.4 kB / 1.169 GB, free: 1.344 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-06/0.9826, allocations: 4.312 kB / 1.169 GB, free: 1.34 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.9826, allocations: 384 / 1.169 GB, free: 1.34 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001207/0.9828, allocations: 46 kB / 1.169 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.353e-06/0.9828, allocations: 0 / 1.169 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.775e-06/0.9828, allocations: 0 / 1.169 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.9828, allocations: 4 kB / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.962e-05/0.9829, allocations: 23.97 kB / 1.169 GB, free: 1.262 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00031/0.9832, allocations: 252.9 kB / 1.169 GB, free: 0.9648 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 8.639e-05/0.9833, allocations: 34.5 kB / 1.169 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.19e-05/0.9833, allocations: 20.91 kB / 1.169 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.574e-05/0.9834, allocations: 4 kB / 1.169 GB, free: 0.8945 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.337e-05/0.9834, allocations: 30.56 kB / 1.169 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.9834, allocations: 0 / 1.169 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0002143/0.9836, allocations: 53.69 kB / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.9837, allocations: 59.33 kB / 1.17 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.277e-05/0.9838, allocations: 101.9 kB / 1.17 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.9838, allocations: 25.7 kB / 1.17 GB, free: 0.5859 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.42e-05/0.9838, allocations: 92.27 kB / 1.17 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.9839, allocations: 15.81 kB / 1.17 GB, free: 488 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.859e-05/0.9839, allocations: 17.72 kB / 1.17 GB, free: 464 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001007/0.984, allocations: 314.8 kB / 1.17 GB, free: 140 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.106e-05/0.984, allocations: 7.984 kB / 1.17 GB, free: 132 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.096e-05/0.9841, allocations: 8 kB / 1.17 GB, free: 124 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.362e-05/0.9842, allocations: 32.84 kB / 1.17 GB, free: 88 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.9842, allocations: 3.938 kB / 1.17 GB, free: 84 kB / 0.8887 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001041/0.9843, allocations: 49.69 kB / 1.17 GB, free: 28 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.9843, allocations: 11.94 kB / 1.17 GB, free: 16 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/0.9843, allocations: 0 / 1.17 GB, free: 16 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.9843, allocations: 3.984 kB / 1.17 GB, free: 12 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.053e-05/0.9844, allocations: 4 kB / 1.17 GB, free: 8 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.247e-06/0.9844, allocations: 0 / 1.17 GB, free: 8 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.084e-05/0.9845, allocations: 4.203 kB / 1.17 GB, free: 4 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/0.9845, allocations: 12.08 kB / 1.17 GB, free: 15.99 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 6.394e-05/0.9846, allocations: 116.8 kB / 1.17 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.24e-05/0.9846, allocations: 7.938 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.916e-05/0.9846, allocations: 3.531 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.9846, allocations: 0 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.9846, allocations: 0 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-06/0.9846, allocations: 0 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001477/0.9848, allocations: 157.6 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.9848, allocations: 4 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.284e-05/0.9848, allocations: 11.98 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.9849, allocations: 0 / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.111e-06/0.9849, allocations: 0 / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.9849, allocations: 0 / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.9849, allocations: 0 / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000151/0.985, allocations: 155.4 kB / 1.171 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.463e-05/0.9851, allocations: 81.06 kB / 1.171 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.9851, allocations: 8.031 kB / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.894e-05/0.9852, allocations: 0 / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.794e-05/0.9852, allocations: 0 / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.959e-06/0.9852, allocations: 4 kB / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.45e-05/0.9852, allocations: 87.27 kB / 1.171 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9853, allocations: 0 / 1.171 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002114/0.9855, allocations: 4 kB / 1.171 GB, free: 15.27 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 8.985e-05/0.9856, allocations: 95.25 kB / 1.171 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000119/0.9857, allocations: 23.98 kB / 1.171 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.9857, allocations: 4 kB / 1.171 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 4.106e-05/0.9857, allocations: 11.92 kB / 1.171 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002048/0.986, allocations: 15.88 kB / 1.171 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002626/0.9862, allocations: 118.5 kB / 1.171 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002286/0.9865, allocations: 0.6808 MB / 1.172 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.491e-05/0.9865, allocations: 4 kB / 1.172 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.085e-05/0.9865, allocations: 7.438 kB / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of SimCode: time 2.11e-07/0.9865, allocations: 0 / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of Templates: time 0.001953/0.9885, allocations: 320.5 kB / 1.172 GB, free: 13.94 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/jenkins/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