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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001043/0.001043, allocations: 118.9 kB / 16.37 MB, free: 6.016 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.001035/0.001035, allocations: 193 kB / 17.31 MB, free: 5.613 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.311/1.311, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.495/2.495, allocations: 437.1 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 56.25 kB / 0.8707 GB, free: 1.402 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.3087, allocations: 151.7 MB / 1.019 GB, free: 9.809 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002692/0.3114, allocations: 1.412 MB / 1.02 GB, free: 8.383 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0006228/0.3121, allocations: 412.5 kB / 1.021 GB, free: 7.977 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.202e-05/0.3121, allocations: 0 / 1.021 GB, free: 7.977 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.309e-05/0.3122, allocations: 0 / 1.021 GB, free: 7.977 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.203e-05/0.3122, allocations: 7.938 kB / 1.021 GB, free: 7.969 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001445/0.3124, allocations: 7.984 kB / 1.021 GB, free: 7.961 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.721e-05/0.3124, allocations: 27.86 kB / 1.021 GB, free: 7.934 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.663e-05/0.3125, allocations: 4 kB / 1.021 GB, free: 7.93 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.389e-05/0.3126, allocations: 23.91 kB / 1.021 GB, free: 7.906 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.154e-05/0.3127, allocations: 11.94 kB / 1.021 GB, free: 7.895 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.307e-05/0.3127, allocations: 0 / 1.021 GB, free: 7.895 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.875e-06/0.3127, allocations: 0 / 1.021 GB, free: 7.895 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.492e-05/0.3127, allocations: 7.984 kB / 1.021 GB, free: 7.887 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.666e-05/0.3128, allocations: 7.938 kB / 1.021 GB, free: 7.879 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 7.56e-05/0.3128, allocations: 27.91 kB / 1.021 GB, free: 7.852 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3128, allocations: 0 / 1.021 GB, free: 7.852 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.744e-06/0.3129, allocations: 0 / 1.021 GB, free: 7.852 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.528e-06/0.3129, allocations: 0 / 1.021 GB, free: 7.852 MB / 0.795 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.0003903/0.3133, allocations: 335.4 kB / 1.021 GB, free: 7.477 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.3133, allocations: 8.031 kB / 1.021 GB, free: 7.469 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.291e-05/0.3133, allocations: 0.9375 kB / 1.021 GB, free: 7.469 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.3134, allocations: 176.3 kB / 1.021 GB, free: 7.258 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.3135, allocations: 384 / 1.021 GB, free: 7.258 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.613e-05/0.3135, allocations: 4.375 kB / 1.021 GB, free: 7.254 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.3136, allocations: 45.94 kB / 1.021 GB, free: 7.203 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.3136, allocations: 0 / 1.021 GB, free: 7.203 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.3136, allocations: 4 kB / 1.021 GB, free: 7.199 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.3136, allocations: 4 kB / 1.021 GB, free: 7.195 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.605e-05/0.3137, allocations: 15.98 kB / 1.021 GB, free: 7.18 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003265/0.3141, allocations: 260.8 kB / 1.022 GB, free: 6.875 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 7.651e-05/0.3141, allocations: 34.55 kB / 1.022 GB, free: 6.832 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.11e-05/0.3142, allocations: 20.91 kB / 1.022 GB, free: 6.809 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/0.3142, allocations: 4 kB / 1.022 GB, free: 6.805 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.3143, allocations: 30.56 kB / 1.022 GB, free: 6.766 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.3143, allocations: 0 / 1.022 GB, free: 6.766 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0002119/0.3145, allocations: 57.69 kB / 1.022 GB, free: 6.703 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.3145, allocations: 55.39 kB / 1.022 GB, free: 6.637 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.886e-05/0.3146, allocations: 101.9 kB / 1.022 GB, free: 6.527 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.3146, allocations: 29.83 kB / 1.022 GB, free: 6.492 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.102e-05/0.3147, allocations: 88.12 kB / 1.022 GB, free: 6.402 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.368e-05/0.3147, allocations: 11.84 kB / 1.022 GB, free: 6.391 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-05/0.3147, allocations: 17.66 kB / 1.022 GB, free: 6.367 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.3149, allocations: 310.8 kB / 1.022 GB, free: 6.055 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.085e-05/0.3149, allocations: 11.98 kB / 1.022 GB, free: 6.043 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.005e-05/0.3149, allocations: 8 kB / 1.022 GB, free: 6.035 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.952e-05/0.315, allocations: 32.84 kB / 1.022 GB, free: 6 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.315, allocations: 0 / 1.022 GB, free: 6 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.772e-05/0.3151, allocations: 45.69 kB / 1.022 GB, free: 5.949 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.3151, allocations: 8 kB / 1.022 GB, free: 5.941 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.3152, allocations: 7.969 kB / 1.022 GB, free: 5.934 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.3152, allocations: 0 / 1.022 GB, free: 5.934 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.358e-05/0.3153, allocations: 4 kB / 1.022 GB, free: 5.93 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.3153, allocations: 3.938 kB / 1.022 GB, free: 5.926 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.042e-05/0.3153, allocations: 8.031 kB / 1.022 GB, free: 5.918 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-06/0.3153, allocations: 0 / 1.022 GB, free: 5.918 MB / 0.795 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.728e-05/0.3154, allocations: 117.8 kB / 1.022 GB, free: 5.793 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.413e-05/0.3154, allocations: 7.906 kB / 1.022 GB, free: 5.785 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.865e-05/0.3154, allocations: 3.531 kB / 1.022 GB, free: 5.781 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.3155, allocations: 0 / 1.022 GB, free: 5.781 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3155, allocations: 0 / 1.022 GB, free: 5.781 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.3155, allocations: 0 / 1.022 GB, free: 5.781 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001472/0.3156, allocations: 165.6 kB / 1.023 GB, free: 5.57 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.3156, allocations: 4 kB / 1.023 GB, free: 5.566 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.138e-05/0.3157, allocations: 7.984 kB / 1.023 GB, free: 5.559 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.3157, allocations: 0 / 1.023 GB, free: 5.559 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.971e-06/0.3157, allocations: 3.938 kB / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3157, allocations: 0 / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3157, allocations: 0 / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001431/0.3158, allocations: 151.7 kB / 1.023 GB, free: 5.391 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.378e-05/0.3159, allocations: 85.14 kB / 1.023 GB, free: 5.289 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.332e-05/0.3159, allocations: 4 kB / 1.023 GB, free: 5.285 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.58e-05/0.316, allocations: 3.938 kB / 1.023 GB, free: 5.281 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.227e-05/0.316, allocations: 4 kB / 1.023 GB, free: 5.277 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.316, allocations: 4 kB / 1.023 GB, free: 5.273 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.932e-05/0.3161, allocations: 83.27 kB / 1.023 GB, free: 5.191 MB / 0.795 GB Notification: Performance of sort global known variables: time 1e-07/0.3161, allocations: 0 / 1.023 GB, free: 5.191 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002066/0.3163, allocations: 7.906 kB / 1.023 GB, free: 5.184 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.0001193/0.3164, allocations: 102.2 kB / 1.023 GB, free: 5.074 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001253/0.3165, allocations: 27.98 kB / 1.023 GB, free: 5.047 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3165, allocations: 0 / 1.023 GB, free: 5.047 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 4.268e-05/0.3166, allocations: 15.98 kB / 1.023 GB, free: 5.031 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001993/0.3168, allocations: 7.875 kB / 1.023 GB, free: 5.023 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002944/0.3171, allocations: 106.8 kB / 1.023 GB, free: 4.895 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002127/0.3173, allocations: 0.6808 MB / 1.024 GB, free: 4.188 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.59e-05/0.3174, allocations: 4 kB / 1.024 GB, free: 4.184 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.271e-05/0.3174, allocations: 7.438 kB / 1.024 GB, free: 4.176 MB / 0.795 GB Notification: Performance of SimCode: time 3.01e-07/0.3174, allocations: 0 / 1.024 GB, free: 4.176 MB / 0.795 GB Notification: Performance of Templates: time 0.002215/0.3196, allocations: 318.1 kB / 1.024 GB, free: 3.867 MB / 0.795 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 -s cvode -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