Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_11_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_11_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.001398/0.001397, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001474/0.001474, allocations: 194.8 kB / 16.25 MB, free: 6.629 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.46/1.46, allocations: 222.9 MB / 239.9 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.89/2.89, allocations: 469.8 MB / 0.742 GB, free: 7.609 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 71.75 kB / 0.908 GB, free: 34.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.2945, allocations: 159.2 MB / 1.063 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.003024/0.2976, allocations: 1.585 MB / 1.065 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008026/0.2984, allocations: 447 kB / 1.065 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.015e-05/0.2985, allocations: 4 kB / 1.065 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.2986, allocations: 7.922 kB / 1.065 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.136e-05/0.2987, allocations: 15.86 kB / 1.065 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001925/0.2989, allocations: 23.97 kB / 1.065 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001589/0.299, allocations: 83.78 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.2992, allocations: 20.17 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001211/0.2993, allocations: 35.84 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.745e-05/0.2994, allocations: 39.83 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.249e-05/0.2994, allocations: 4 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.002e-05/0.2995, allocations: 15.94 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.194e-05/0.2995, allocations: 19.92 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.511e-05/0.2996, allocations: 35.8 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001396/0.2997, allocations: 64.06 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2997, allocations: 0 / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.754e-06/0.2998, allocations: 0 / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.2998, allocations: 0 / 1.066 GB, free: 12.2 MB / 0.8262 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.0007303/0.3005, allocations: 446.6 kB / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.3005, allocations: 16.03 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.809e-05/0.3006, allocations: 8.844 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.3008, allocations: 200.9 kB / 1.066 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.3008, allocations: 384 / 1.066 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.008e-05/0.3009, allocations: 8.375 kB / 1.066 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003067/0.3012, allocations: 97.75 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.3012, allocations: 0 / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.3012, allocations: 0 / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.3012, allocations: 0 / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000294/0.3015, allocations: 87.86 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005986/0.3021, allocations: 324.8 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002996/0.3024, allocations: 86.55 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.3026, allocations: 52.94 kB / 1.067 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.442e-05/0.3026, allocations: 0 / 1.067 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003292/0.303, allocations: 103.3 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.303, allocations: 4 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0006644/0.3037, allocations: 211.1 kB / 1.067 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.62e-05/0.3037, allocations: 85.11 kB / 1.067 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.3039, allocations: 135.7 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.753e-05/0.3039, allocations: 25.7 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.703e-05/0.304, allocations: 104 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.302e-05/0.304, allocations: 19.72 kB / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.228e-05/0.3041, allocations: 29.7 kB / 1.068 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001786/0.3043, allocations: 326.8 kB / 1.068 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.3044, allocations: 43.97 kB / 1.068 GB, free: 9.594 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001662/0.3046, allocations: 59.89 kB / 1.068 GB, free: 9.535 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003732/0.305, allocations: 169.8 kB / 1.068 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.305, allocations: 0 / 1.068 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004612/0.3055, allocations: 204.9 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.797e-05/0.3055, allocations: 63.39 kB / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3056, allocations: 320 / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.3056, allocations: 0 / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.3057, allocations: 23.92 kB / 1.069 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.3057, allocations: 0 / 1.069 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001443/0.3059, allocations: 19.92 kB / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.442e-05/0.3059, allocations: 15.91 kB / 1.069 GB, free: 8.996 MB / 0.8262 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.0001227/0.306, allocations: 143.5 kB / 1.069 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.175e-05/0.3061, allocations: 7.906 kB / 1.069 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.208e-05/0.3061, allocations: 16.7 kB / 1.069 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.3061, allocations: 0 / 1.069 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3061, allocations: 4 kB / 1.069 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.3061, allocations: 0 / 1.069 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006276/0.3068, allocations: 436.1 kB / 1.069 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3068, allocations: 0 / 1.069 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.832e-05/0.3069, allocations: 11.98 kB / 1.069 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.3069, allocations: 0 / 1.069 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.3069, allocations: 4 kB / 1.069 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.3069, allocations: 7.938 kB / 1.069 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3069, allocations: 288 / 1.069 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004872/0.3074, allocations: 265.1 kB / 1.069 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.447e-05/0.3075, allocations: 85.02 kB / 1.07 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.3075, allocations: 3.938 kB / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001729/0.3077, allocations: 31.91 kB / 1.07 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.3078, allocations: 23.91 kB / 1.07 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.3078, allocations: 7.984 kB / 1.07 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.557e-05/0.3079, allocations: 100.5 kB / 1.07 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3079, allocations: 3.938 kB / 1.07 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002474/0.3082, allocations: 20 kB / 1.07 GB, free: 7.73 MB / 0.8262 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.0001235/0.3083, allocations: 103.2 kB / 1.07 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004969/0.3088, allocations: 230.6 kB / 1.07 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3088, allocations: 0 / 1.07 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002252/0.309, allocations: 111.4 kB / 1.07 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.3093, allocations: 7.984 kB / 1.07 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005226/0.3099, allocations: 211.1 kB / 1.07 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.3102, allocations: 0.6943 MB / 1.071 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.964e-05/0.3103, allocations: 11.98 kB / 1.071 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.791e-05/0.3103, allocations: 23.42 kB / 1.071 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3103, allocations: 3.938 kB / 1.071 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of Templates: time 0.004354/0.3147, allocations: 1.2 MB / 1.072 GB, free: 5.066 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches