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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001697/0.001697, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001958/0.001958, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.368/1.368, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.729/2.729, allocations: 472.7 MB / 0.7451 GB, free: 4.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 65.25 kB / 0.9121 GB, free: 33.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2826, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.00275/0.2853, allocations: 1.521 MB / 1.07 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000881/0.2862, allocations: 450.9 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.872e-05/0.2863, allocations: 0 / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001344/0.2865, allocations: 11.92 kB / 1.07 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.81e-05/0.2865, allocations: 7.875 kB / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002599/0.2868, allocations: 39.88 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001628/0.287, allocations: 83.72 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.2871, allocations: 28.16 kB / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000133/0.2872, allocations: 35.92 kB / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.922e-05/0.2874, allocations: 39.81 kB / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.356e-05/0.2874, allocations: 8 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.883e-05/0.2874, allocations: 4 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.493e-05/0.2875, allocations: 15.92 kB / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.883e-05/0.2876, allocations: 39.73 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001453/0.2877, allocations: 68.06 kB / 1.071 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2877, allocations: 4 kB / 1.071 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.813e-06/0.2877, allocations: 0 / 1.071 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.043e-06/0.2878, allocations: 0 / 1.071 GB, free: 8.031 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.0007537/0.2885, allocations: 454.5 kB / 1.071 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.2886, allocations: 8.031 kB / 1.071 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.925e-05/0.2886, allocations: 8.844 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.2888, allocations: 184.2 kB / 1.071 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.2888, allocations: 4.375 kB / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.784e-05/0.2888, allocations: 8.375 kB / 1.071 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000313/0.2892, allocations: 101.7 kB / 1.071 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.2892, allocations: 0 / 1.071 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.2892, allocations: 4 kB / 1.071 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.2892, allocations: 0 / 1.071 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002878/0.2895, allocations: 71.92 kB / 1.071 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005545/0.2901, allocations: 340.6 kB / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.2904, allocations: 82.52 kB / 1.072 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001664/0.2906, allocations: 64.88 kB / 1.072 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.286e-05/0.2906, allocations: 0 / 1.072 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002862/0.2909, allocations: 99.33 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.2909, allocations: 0 / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0006157/0.2915, allocations: 215.2 kB / 1.072 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.699e-05/0.2916, allocations: 85.05 kB / 1.072 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.2917, allocations: 132.1 kB / 1.072 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.2917, allocations: 29.7 kB / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.063e-05/0.2918, allocations: 96.06 kB / 1.072 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.2918, allocations: 23.7 kB / 1.072 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.74e-05/0.2919, allocations: 29.7 kB / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.292, allocations: 322.8 kB / 1.073 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.2922, allocations: 51.97 kB / 1.073 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001603/0.2923, allocations: 47.95 kB / 1.073 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003289/0.2927, allocations: 165.8 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2927, allocations: 0 / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004553/0.2931, allocations: 216.9 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.611e-05/0.2932, allocations: 63.39 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.2932, allocations: 0 / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.2932, allocations: 0 / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.2934, allocations: 16.27 kB / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.2934, allocations: 0 / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001337/0.2935, allocations: 19.92 kB / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.583e-05/0.2936, allocations: 11.88 kB / 1.073 GB, free: 4.84 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.0001047/0.2937, allocations: 151.5 kB / 1.073 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.022e-05/0.2937, allocations: 7.906 kB / 1.073 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.007e-05/0.2937, allocations: 8.719 kB / 1.074 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.2937, allocations: 7.984 kB / 1.074 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2937, allocations: 0 / 1.074 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.2938, allocations: 3.984 kB / 1.074 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000558/0.2943, allocations: 440.1 kB / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2943, allocations: 0 / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001013/0.2944, allocations: 15.98 kB / 1.074 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.2944, allocations: 0 / 1.074 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.2945, allocations: 0 / 1.074 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.2945, allocations: 3.938 kB / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2945, allocations: 0 / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004348/0.2949, allocations: 269 kB / 1.074 GB, free: 3.848 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.577e-05/0.295, allocations: 89.02 kB / 1.074 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.295, allocations: 0 / 1.074 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.2952, allocations: 23.91 kB / 1.074 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.229e-05/0.2953, allocations: 19.92 kB / 1.074 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.2953, allocations: 11.98 kB / 1.074 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.712e-05/0.2954, allocations: 101.1 kB / 1.074 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2954, allocations: 4 kB / 1.074 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002443/0.2956, allocations: 20 kB / 1.074 GB, free: 3.566 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.000109/0.2957, allocations: 99.78 kB / 1.075 GB, free: 3.461 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004707/0.2962, allocations: 222.7 kB / 1.075 GB, free: 3.219 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2962, allocations: 0 / 1.075 GB, free: 3.219 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002199/0.2965, allocations: 115.4 kB / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.2967, allocations: 12 kB / 1.075 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005385/0.2973, allocations: 212.3 kB / 1.075 GB, free: 2.852 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/0.2976, allocations: 0.6933 MB / 1.076 GB, free: 2.133 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.953e-05/0.2977, allocations: 15.77 kB / 1.076 GB, free: 2.117 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.291e-05/0.2978, allocations: 15.42 kB / 1.076 GB, free: 2.102 MB / 0.8262 GB Notification: Performance of SimCode: time 2.9e-07/0.2978, allocations: 0 / 1.076 GB, free: 2.102 MB / 0.8262 GB Notification: Performance of Templates: time 0.003837/0.3016, allocations: 1.314 MB / 1.077 GB, free: 0.8047 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