Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_10_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_10_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.006275/0.006275, allocations: 101.6 kB / 15.88 MB, free: 5.867 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.001343/0.001343, allocations: 192.7 kB / 16.79 MB, free: 5.809 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.35/1.35, allocations: 222.9 MB / 240.5 MB, free: 4.555 MB / 190.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.703/2.703, allocations: 437 MB / 0.7106 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 63.91 kB / 0.8692 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6866/0.6881, allocations: 151.6 MB / 1.017 GB, free: 2.75 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.003124/0.6913, allocations: 1.583 MB / 1.019 GB, free: 1.16 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008356/0.6922, allocations: 470.8 kB / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.797e-05/0.6922, allocations: 0 / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.6924, allocations: 3.938 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.491e-05/0.6924, allocations: 11.88 kB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002116/0.6927, allocations: 23.97 kB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001232/0.6928, allocations: 79.7 kB / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.6929, allocations: 24.17 kB / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.693, allocations: 31.91 kB / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.398e-05/0.6932, allocations: 35.84 kB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.592e-05/0.6932, allocations: 4 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.821e-05/0.6932, allocations: 4 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 5.324e-05/0.6933, allocations: 15.91 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 7.005e-05/0.6933, allocations: 35.8 kB / 1.02 GB, free: 440 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001079/0.6935, allocations: 45.89 kB / 1.02 GB, free: 396 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.6935, allocations: 0 / 1.02 GB, free: 396 kB / 0.7637 GB Notification: Performance of FrontEnd: time 8.32e-07/0.6935, allocations: 4 kB / 1.02 GB, free: 392 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.164e-06/0.6935, allocations: 3.938 kB / 1.02 GB, free: 388 kB / 0.7637 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.0007496/0.6942, allocations: 450.6 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.6943, allocations: 8.031 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.315e-05/0.6943, allocations: 8.844 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001996/0.6946, allocations: 184.3 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.6946, allocations: 4.375 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.6946, allocations: 8.375 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002935/0.6949, allocations: 97.75 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.894e-06/0.6949, allocations: 3.938 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.54e-05/0.6949, allocations: 4 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.6949, allocations: 0 / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002772/0.6952, allocations: 67.94 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000585/0.6958, allocations: 340.6 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002938/0.6961, allocations: 86.55 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001609/0.6963, allocations: 48.95 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.6963, allocations: 4 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003157/0.6966, allocations: 103.3 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.6967, allocations: 0 / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.000633/0.6973, allocations: 215.1 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.902e-05/0.6974, allocations: 89.05 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.6975, allocations: 130.1 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.6975, allocations: 29.7 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.583e-05/0.6976, allocations: 96.05 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.255e-05/0.6976, allocations: 19.73 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.577e-05/0.6977, allocations: 25.72 kB / 1.022 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.6978, allocations: 322.8 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/0.698, allocations: 51.95 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001535/0.6981, allocations: 47.97 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00031/0.6985, allocations: 170 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.6985, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004304/0.6989, allocations: 220.9 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.586e-05/0.699, allocations: 60.81 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.699, allocations: 0 / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.699, allocations: 0 / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.6991, allocations: 15.98 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.6991, allocations: 3.984 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000128/0.6993, allocations: 15.89 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.986e-05/0.6993, allocations: 11.94 kB / 1.022 GB, free: 13.2 MB / 0.7794 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.0001149/0.6994, allocations: 148.1 kB / 1.023 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.091e-05/0.6995, allocations: 11.89 kB / 1.023 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.031e-05/0.6995, allocations: 8.719 kB / 1.023 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.6995, allocations: 4 kB / 1.023 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.6995, allocations: 4 kB / 1.023 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.6995, allocations: 0 / 1.023 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005562/0.7001, allocations: 436.1 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.7001, allocations: 0 / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.418e-05/0.7002, allocations: 15.98 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.7002, allocations: 0 / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.7002, allocations: 4 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.7002, allocations: 3.938 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.7002, allocations: 8.375 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000418/0.7006, allocations: 269 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.383e-05/0.7007, allocations: 92.94 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.618e-05/0.7007, allocations: 4 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/0.7009, allocations: 19.92 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.701, allocations: 27.89 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.701, allocations: 4 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.982e-05/0.7011, allocations: 100.7 kB / 1.024 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7011, allocations: 4.094 kB / 1.024 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002364/0.7013, allocations: 19.94 kB / 1.024 GB, free: 11.92 MB / 0.7794 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.0001319/0.7015, allocations: 107.2 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004407/0.7019, allocations: 218.7 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.7019, allocations: 0 / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002034/0.7021, allocations: 111.4 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002899/0.7024, allocations: 12.73 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005483/0.703, allocations: 234.8 kB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.7033, allocations: 0.6965 MB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.163e-05/0.7033, allocations: 7.438 kB / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of SimCode: time 1.433e-06/0.7033, allocations: 0 / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of Templates: time 0.003164/0.7065, allocations: 1.261 MB / 1.026 GB, free: 9.195 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches