Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.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.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002449/0.002448, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.003151/0.003151, allocations: 194.5 kB / 16.14 MB, free: 6.645 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.546/1.546, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.703/2.703, allocations: 461.9 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 67.86 kB / 0.8984 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.2891, allocations: 157.4 MB / 1.052 GB, free: 8.836 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.003453/0.2926, allocations: 1.576 MB / 1.054 GB, free: 7.246 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00101/0.2936, allocations: 474.6 kB / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.459e-05/0.2937, allocations: 0 / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001189/0.2938, allocations: 3.938 kB / 1.054 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.063e-05/0.2939, allocations: 15.91 kB / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000224/0.2942, allocations: 23.92 kB / 1.054 GB, free: 6.734 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001228/0.2943, allocations: 71.83 kB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.2944, allocations: 16.19 kB / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001309/0.2946, allocations: 47.77 kB / 1.054 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.106e-05/0.2947, allocations: 23.91 kB / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.839e-05/0.2947, allocations: 7.938 kB / 1.054 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.96e-05/0.2947, allocations: 7.938 kB / 1.054 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.712e-05/0.2948, allocations: 11.98 kB / 1.054 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.726e-05/0.2949, allocations: 39.78 kB / 1.054 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001322/0.295, allocations: 68.06 kB / 1.054 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.295, allocations: 0 / 1.054 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.91e-07/0.295, allocations: 0 / 1.054 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.295, allocations: 4 kB / 1.054 GB, free: 6.441 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007078/0.2957, allocations: 435.9 kB / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.2958, allocations: 12.03 kB / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.76e-05/0.2958, allocations: 16.84 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001813/0.296, allocations: 195.3 kB / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.2961, allocations: 8.312 kB / 1.055 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.046e-05/0.2961, allocations: 8.375 kB / 1.055 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000303/0.2964, allocations: 93.75 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.2964, allocations: 0 / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.2964, allocations: 7.984 kB / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.2964, allocations: 4 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002679/0.2967, allocations: 71.94 kB / 1.055 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005925/0.2973, allocations: 332.6 kB / 1.056 GB, free: 5.133 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002919/0.2976, allocations: 86.45 kB / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.2978, allocations: 52.95 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.476e-05/0.2978, allocations: 0 / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003362/0.2982, allocations: 107.4 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.703e-06/0.2982, allocations: 0 / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0006051/0.2988, allocations: 215.2 kB / 1.056 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.235e-05/0.2988, allocations: 81.11 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.299, allocations: 130.1 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.299, allocations: 25.7 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.931e-05/0.299, allocations: 99.98 kB / 1.056 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.303e-05/0.2991, allocations: 19.8 kB / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.68e-05/0.2991, allocations: 29.66 kB / 1.056 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.2993, allocations: 326.8 kB / 1.057 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.2994, allocations: 51.95 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001502/0.2996, allocations: 47.91 kB / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003084/0.2999, allocations: 169.9 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2999, allocations: 0 / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004375/0.3004, allocations: 212.9 kB / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.172e-05/0.3004, allocations: 55.41 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.3004, allocations: 0 / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.3005, allocations: 4 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.3006, allocations: 11.98 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.3006, allocations: 3.984 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001385/0.3008, allocations: 31.83 kB / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.139e-05/0.3008, allocations: 7.938 kB / 1.057 GB, free: 3.254 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: 6 (act1.count,$PRE.act1.count,act1.T_start,$PRE.act1.T_start,reqCou.nInc,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0001249/0.3009, allocations: 151.4 kB / 1.057 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.246e-05/0.3009, allocations: 15.89 kB / 1.057 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.136e-05/0.301, allocations: 8.719 kB / 1.057 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.301, allocations: 0 / 1.057 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.301, allocations: 0 / 1.057 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.301, allocations: 4 kB / 1.057 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005971/0.3016, allocations: 440.4 kB / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3016, allocations: 0 / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.725e-05/0.3017, allocations: 15.92 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.3017, allocations: 4 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.3018, allocations: 0 / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.073e-06/0.3018, allocations: 16.14 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3018, allocations: 0 / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000419/0.3022, allocations: 261.1 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.025e-05/0.3023, allocations: 92.94 kB / 1.058 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.708e-05/0.3023, allocations: 4 kB / 1.058 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/0.3025, allocations: 15.92 kB / 1.058 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.3026, allocations: 27.95 kB / 1.058 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.3026, allocations: 4 kB / 1.058 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.431e-05/0.3027, allocations: 101.4 kB / 1.058 GB, free: 2 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.21e-07/0.3027, allocations: 4 kB / 1.058 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002474/0.3029, allocations: 20 kB / 1.058 GB, free: 1.977 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: 4 ($whenCondition1,reqCou.nInc,act1.T_start,act1.count) * Number of discrete states: 2 (act1.count,reqCou.nInc) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.0001407/0.3031, allocations: 107.2 kB / 1.058 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004708/0.3036, allocations: 222.7 kB / 1.059 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3036, allocations: 0 / 1.059 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002132/0.3038, allocations: 103.3 kB / 1.059 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003073/0.3041, allocations: 15.98 kB / 1.059 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005306/0.3047, allocations: 216.8 kB / 1.059 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002417/0.3049, allocations: 0.6926 MB / 1.06 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.745e-05/0.305, allocations: 11.98 kB / 1.06 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.777e-05/0.305, allocations: 7.438 kB / 1.06 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of SimCode: time 1.323e-06/0.3051, allocations: 4 kB / 1.06 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of Templates: time 0.003669/0.3087, allocations: 1.141 MB / 1.061 GB, free: 15.39 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches