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.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.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.000917/0.0009172, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.007834/0.007834, allocations: 173.6 kB / 16.27 MB, free: 6.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.515/1.515, allocations: 223.3 MB / 240.3 MB, free: 5.316 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.737/2.737, allocations: 443.3 MB / 0.7175 GB, free: 1.461 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003348/0.0003348, allocations: 8.469 kB / 0.8796 GB, free: 41.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2778, allocations: 155.2 MB / 1.031 GB, free: 4.293 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001601/0.2795, allocations: 1.237 MB / 1.032 GB, free: 3.047 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0006875/0.2802, allocations: 467.2 kB / 1.033 GB, free: 2.586 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.495e-05/0.2802, allocations: 0 / 1.033 GB, free: 2.586 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 7.591e-05/0.2803, allocations: 7.938 kB / 1.033 GB, free: 2.578 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.386e-05/0.2804, allocations: 11.92 kB / 1.033 GB, free: 2.566 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001722/0.2806, allocations: 27.84 kB / 1.033 GB, free: 2.539 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.2807, allocations: 79.77 kB / 1.033 GB, free: 2.461 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.46e-05/0.2808, allocations: 16.19 kB / 1.033 GB, free: 2.445 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.2809, allocations: 39.83 kB / 1.033 GB, free: 2.406 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.563e-05/0.281, allocations: 31.84 kB / 1.033 GB, free: 2.375 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.225e-05/0.281, allocations: 4 kB / 1.033 GB, free: 2.371 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.459e-05/0.281, allocations: 4 kB / 1.033 GB, free: 2.367 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.9e-05/0.2811, allocations: 11.92 kB / 1.033 GB, free: 2.355 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.751e-05/0.2811, allocations: 53.56 kB / 1.033 GB, free: 2.297 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.2813, allocations: 67.98 kB / 1.033 GB, free: 2.23 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2813, allocations: 7.938 kB / 1.033 GB, free: 2.223 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2813, allocations: 0 / 1.033 GB, free: 2.223 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.607e-06/0.2813, allocations: 0 / 1.033 GB, free: 2.223 MB / 0.7794 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.0006239/0.2819, allocations: 436.1 kB / 1.034 GB, free: 1.738 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.282, allocations: 8.031 kB / 1.034 GB, free: 1.73 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.093e-05/0.282, allocations: 12.84 kB / 1.034 GB, free: 1.719 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001713/0.2822, allocations: 192.1 kB / 1.034 GB, free: 1.492 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.2822, allocations: 8.359 kB / 1.034 GB, free: 1.484 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.897e-05/0.2822, allocations: 4.375 kB / 1.034 GB, free: 1.48 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002867/0.2825, allocations: 101.8 kB / 1.034 GB, free: 1.375 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.931e-06/0.2825, allocations: 0 / 1.034 GB, free: 1.375 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.373e-05/0.2826, allocations: 4 kB / 1.034 GB, free: 1.371 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.2826, allocations: 3.984 kB / 1.034 GB, free: 1.367 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002948/0.2829, allocations: 91.88 kB / 1.034 GB, free: 1.277 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005397/0.2834, allocations: 344.7 kB / 1.034 GB, free: 0.8906 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002982/0.2837, allocations: 98.55 kB / 1.034 GB, free: 0.7852 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001688/0.2839, allocations: 60.95 kB / 1.034 GB, free: 0.7227 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.247e-05/0.2839, allocations: 0 / 1.034 GB, free: 0.7227 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003119/0.2843, allocations: 111.3 kB / 1.035 GB, free: 0.6016 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.2843, allocations: 0 / 1.035 GB, free: 0.6016 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0006322/0.2849, allocations: 231.2 kB / 1.035 GB, free: 372 kB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.285, allocations: 89.03 kB / 1.035 GB, free: 264 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.931e-05/0.2851, allocations: 131.3 kB / 1.035 GB, free: 120 kB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.271e-05/0.2851, allocations: 37.69 kB / 1.035 GB, free: 76 kB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.558e-05/0.2852, allocations: 92.14 kB / 1.035 GB, free: 15.98 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.241e-05/0.2852, allocations: 23.64 kB / 1.035 GB, free: 15.96 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.188e-05/0.2852, allocations: 17.72 kB / 1.035 GB, free: 15.93 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.752e-05/0.2854, allocations: 326.8 kB / 1.035 GB, free: 15.61 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001752/0.2855, allocations: 47.97 kB / 1.035 GB, free: 15.56 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.2857, allocations: 63.95 kB / 1.036 GB, free: 15.5 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003343/0.2861, allocations: 177.9 kB / 1.036 GB, free: 15.3 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.2861, allocations: 0 / 1.036 GB, free: 15.3 MB / 0.795 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004446/0.2865, allocations: 228.8 kB / 1.036 GB, free: 15.06 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.039e-05/0.2866, allocations: 73.42 kB / 1.036 GB, free: 14.98 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.2866, allocations: 0 / 1.036 GB, free: 14.98 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.2866, allocations: 0 / 1.036 GB, free: 14.98 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.2867, allocations: 23.92 kB / 1.036 GB, free: 14.95 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.2867, allocations: 320 / 1.036 GB, free: 14.95 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.2869, allocations: 19.92 kB / 1.036 GB, free: 14.93 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.498e-05/0.2869, allocations: 11.94 kB / 1.036 GB, free: 14.92 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: 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.0001048/0.287, allocations: 153.1 kB / 1.036 GB, free: 14.76 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.2871, allocations: 7.906 kB / 1.036 GB, free: 14.75 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.087e-05/0.2871, allocations: 12.72 kB / 1.036 GB, free: 14.73 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.2871, allocations: 0 / 1.036 GB, free: 14.73 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.2871, allocations: 3.984 kB / 1.036 GB, free: 14.73 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.2871, allocations: 3.984 kB / 1.036 GB, free: 14.73 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005761/0.2877, allocations: 456.3 kB / 1.037 GB, free: 14.22 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2877, allocations: 0 / 1.037 GB, free: 14.22 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.05e-05/0.2878, allocations: 15.98 kB / 1.037 GB, free: 14.2 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.2878, allocations: 7.938 kB / 1.037 GB, free: 14.2 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.2878, allocations: 4 kB / 1.037 GB, free: 14.19 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.2878, allocations: 3.938 kB / 1.037 GB, free: 14.19 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2879, allocations: 0 / 1.037 GB, free: 14.19 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000457/0.2883, allocations: 281.1 kB / 1.037 GB, free: 13.89 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.288e-05/0.2884, allocations: 85.02 kB / 1.037 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.2884, allocations: 0 / 1.037 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001601/0.2886, allocations: 31.91 kB / 1.037 GB, free: 13.76 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.144e-05/0.2887, allocations: 15.98 kB / 1.037 GB, free: 13.74 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.2887, allocations: 7.984 kB / 1.037 GB, free: 13.73 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.378e-05/0.2888, allocations: 105.7 kB / 1.037 GB, free: 13.63 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.423e-06/0.2888, allocations: 0 / 1.037 GB, free: 13.63 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002392/0.289, allocations: 19.94 kB / 1.037 GB, free: 13.61 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: 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.000119/0.2891, allocations: 99.25 kB / 1.037 GB, free: 13.51 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004671/0.2896, allocations: 242.7 kB / 1.038 GB, free: 13.25 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2896, allocations: 0 / 1.038 GB, free: 13.25 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002194/0.2898, allocations: 119.3 kB / 1.038 GB, free: 13.12 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002825/0.2901, allocations: 19.94 kB / 1.038 GB, free: 13.1 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004958/0.2906, allocations: 229 kB / 1.038 GB, free: 12.85 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.2909, allocations: 0.7004 MB / 1.039 GB, free: 12.12 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 5.407e-05/0.2909, allocations: 7.984 kB / 1.039 GB, free: 12.11 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.539e-05/0.291, allocations: 11.44 kB / 1.039 GB, free: 12.11 MB / 0.795 GB Notification: Performance of SimCode: time 2.91e-07/0.291, allocations: 0 / 1.039 GB, free: 12.11 MB / 0.795 GB Notification: Performance of Templates: time 0.003376/0.2944, allocations: 1.137 MB / 1.04 GB, free: 10.98 MB / 0.795 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