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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 88.39 kB / 20.23 MB, free: 4.172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00195/0.00195, allocations: 161.3 kB / 23.54 MB, free: 0.8672 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.491/1.491, allocations: 177.1 MB / 203.9 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.834/2.834, allocations: 359 MB / 0.6048 GB, free: 10.94 MB / 0.573 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.542e-06/1.542e-06, allocations: 0 / 0.7864 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.58e-05/2.734e-05, allocations: 6.141 kB / 0.7864 GB, free: 12.8 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.003058/0.003085, allocations: 1.545 MB / 0.7879 GB, free: 11.27 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001062/0.004147, allocations: 0.4895 MB / 0.7884 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.506e-05/0.004222, allocations: 0 / 0.7884 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.004345, allocations: 13.27 kB / 0.7884 GB, free: 10.76 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 7.342e-05/0.004419, allocations: 15.86 kB / 0.7884 GB, free: 10.75 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.000267/0.004686, allocations: 36.95 kB / 0.7884 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001958/0.004881, allocations: 95.69 kB / 0.7885 GB, free: 10.62 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 8.649e-05/0.004968, allocations: 4 kB / 0.7885 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002175/0.005185, allocations: 69.38 kB / 0.7886 GB, free: 10.55 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 7.881e-05/0.005264, allocations: 27.89 kB / 0.7886 GB, free: 10.52 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.723e-05/0.005291, allocations: 8 kB / 0.7886 GB, free: 10.51 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 5.194e-05/0.005343, allocations: 13.5 kB / 0.7886 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 4.597e-05/0.005389, allocations: 19.92 kB / 0.7886 GB, free: 10.48 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 5.612e-05/0.005445, allocations: 15.98 kB / 0.7887 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001836/0.005629, allocations: 83.75 kB / 0.7887 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.766e-06/0.005632, allocations: 0 / 0.7887 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.82e-07/0.005633, allocations: 5 kB / 0.7887 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.637e-06/0.005636, allocations: 0 / 0.7887 GB, free: 10.38 MB / 0.7448 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.0007785/0.006415, allocations: 382.3 kB / 0.7891 GB, free: 9.965 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.006451, allocations: 9.25 kB / 0.7891 GB, free: 9.957 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001937/0.006645, allocations: 24.88 kB / 0.7891 GB, free: 9.934 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002376/0.006883, allocations: 125.7 kB / 0.7893 GB, free: 9.785 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.006899, allocations: 6.5 kB / 0.7893 GB, free: 9.781 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.043e-05/0.006919, allocations: 12.31 kB / 0.7893 GB, free: 9.77 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005685/0.007488, allocations: 119.9 kB / 0.7894 GB, free: 9.641 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.007498, allocations: 192 / 0.7894 GB, free: 9.641 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.007515, allocations: 6.469 kB / 0.7894 GB, free: 9.637 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.007522, allocations: 3.938 kB / 0.7894 GB, free: 9.633 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003306/0.007852, allocations: 101.6 kB / 0.7895 GB, free: 9.527 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006017/0.008454, allocations: 261.1 kB / 0.7898 GB, free: 9.242 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003453/0.008799, allocations: 114.4 kB / 0.7899 GB, free: 9.117 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002059/0.009005, allocations: 78.59 kB / 0.7899 GB, free: 9.031 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.009021, allocations: 4.656 kB / 0.7899 GB, free: 9.027 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003323/0.009353, allocations: 134.2 kB / 0.7901 GB, free: 8.879 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 1.623e-06/0.009355, allocations: 0 / 0.7901 GB, free: 8.879 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0007805/0.01014, allocations: 269.2 kB / 0.7903 GB, free: 8.594 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.433e-05/0.01022, allocations: 85.09 kB / 0.7904 GB, free: 8.492 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001454/0.01037, allocations: 129.1 kB / 0.7905 GB, free: 8.355 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.227e-05/0.0104, allocations: 31.45 kB / 0.7906 GB, free: 8.32 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 8.788e-05/0.01049, allocations: 100.1 kB / 0.7907 GB, free: 8.219 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.064e-05/0.01052, allocations: 19.8 kB / 0.7907 GB, free: 8.199 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.762e-05/0.01058, allocations: 33.64 kB / 0.7907 GB, free: 8.16 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001826/0.01077, allocations: 318.8 kB / 0.791 GB, free: 7.84 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002377/0.011, allocations: 108.3 kB / 0.7911 GB, free: 7.723 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002271/0.01123, allocations: 104.9 kB / 0.7912 GB, free: 7.609 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003694/0.0116, allocations: 163.2 kB / 0.7914 GB, free: 7.43 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.0116, allocations: 0 / 0.7914 GB, free: 7.43 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005767/0.01218, allocations: 283.5 kB / 0.7916 GB, free: 7.125 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 6.671e-05/0.01225, allocations: 63.39 kB / 0.7917 GB, free: 7.051 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.01225, allocations: 0 / 0.7917 GB, free: 7.051 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.01227, allocations: 0 / 0.7917 GB, free: 7.051 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.0124, allocations: 19.98 kB / 0.7917 GB, free: 7.031 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.01241, allocations: 3.938 kB / 0.7917 GB, free: 7.027 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.01255, allocations: 20.47 kB / 0.7917 GB, free: 7.008 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.01256, allocations: 5.938 kB / 0.7918 GB, free: 7.004 MB / 0.7448 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.0001441/0.01271, allocations: 143.5 kB / 0.7919 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.327e-05/0.01274, allocations: 19.89 kB / 0.7919 GB, free: 6.828 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.698e-05/0.01278, allocations: 16.77 kB / 0.7919 GB, free: 6.816 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.01278, allocations: 2.531 kB / 0.7919 GB, free: 6.816 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.01278, allocations: 0 / 0.7919 GB, free: 6.816 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.01279, allocations: 0 / 0.7919 GB, free: 6.816 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006934/0.01348, allocations: 413.8 kB / 0.7923 GB, free: 6.363 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.01348, allocations: 0.8438 kB / 0.7923 GB, free: 6.363 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.846e-05/0.01358, allocations: 15.92 kB / 0.7923 GB, free: 6.348 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.01358, allocations: 0.8438 kB / 0.7923 GB, free: 6.348 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.0136, allocations: 4 kB / 0.7923 GB, free: 6.344 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.0136, allocations: 1.281 kB / 0.7923 GB, free: 6.344 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.0136, allocations: 3.984 kB / 0.7923 GB, free: 6.34 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005551/0.01416, allocations: 299.6 kB / 0.7926 GB, free: 6.02 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.825e-05/0.01418, allocations: 7.953 kB / 0.7926 GB, free: 6.012 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.276e-05/0.0142, allocations: 2.812 kB / 0.7926 GB, free: 6.012 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001584/0.01436, allocations: 15.98 kB / 0.7927 GB, free: 5.996 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.01447, allocations: 23.97 kB / 0.7927 GB, free: 5.973 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.01449, allocations: 3.984 kB / 0.7927 GB, free: 5.969 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 8.936e-05/0.01458, allocations: 99.27 kB / 0.7928 GB, free: 5.871 MB / 0.7448 GB Notification: Performance of sort global known variables: time 9e-08/0.01458, allocations: 4 kB / 0.7928 GB, free: 5.867 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000257/0.01483, allocations: 22.2 kB / 0.7928 GB, free: 5.848 MB / 0.7448 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.000151/0.01498, allocations: 103.2 kB / 0.7929 GB, free: 5.734 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0005895/0.01557, allocations: 304.8 kB / 0.7932 GB, free: 5.395 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.01557, allocations: 0 / 0.7932 GB, free: 5.395 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0002901/0.01586, allocations: 146.1 kB / 0.7933 GB, free: 5.234 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.01618, allocations: 17 kB / 0.7933 GB, free: 5.219 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006096/0.01679, allocations: 230.1 kB / 0.7936 GB, free: 4.965 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000106/0.01689, allocations: 80.31 kB / 0.7936 GB, free: 4.867 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 6.282e-05/0.01696, allocations: 14.2 kB / 0.7937 GB, free: 4.855 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.011e-05/0.01702, allocations: 12.5 kB / 0.7937 GB, free: 4.844 MB / 0.7448 GB Notification: Performance of SimCode: time 4.41e-07/0.01702, allocations: 0 / 0.7937 GB, free: 4.844 MB / 0.7448 GB Notification: Performance of Templates: time 0.004732/0.02175, allocations: 1.413 MB / 0.795 GB, free: 3.465 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile [Timeout 300] (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) [Timeout 400] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.843504520016722]