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.001343/0.001343, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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.001532/0.001532, allocations: 211.3 kB / 22.24 MB, free: 5.262 MB / 14.72 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.495/1.495, allocations: 230.6 MB / 256 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.824/2.824, allocations: 475.9 MB / 0.7699 GB, free: 4.793 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002169/0.002169, allocations: 67.88 kB / 1.117 GB, free: 41.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3023, allocations: 170 MB / 1.283 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002942/0.3053, allocations: 1.539 MB / 1.285 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001057/0.3063, allocations: 488.7 kB / 1.285 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.918e-05/0.3064, allocations: 0 / 1.285 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 9.922e-05/0.3065, allocations: 7.875 kB / 1.285 GB, free: 10 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.567e-05/0.3066, allocations: 15.86 kB / 1.285 GB, free: 9.984 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000276/0.3069, allocations: 39.89 kB / 1.285 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001851/0.3071, allocations: 91.7 kB / 1.285 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.3072, allocations: 19.97 kB / 1.285 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001783/0.3073, allocations: 43.84 kB / 1.285 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.621e-05/0.3074, allocations: 35.84 kB / 1.285 GB, free: 9.758 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.466e-05/0.3074, allocations: 8 kB / 1.285 GB, free: 9.75 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.485e-05/0.3075, allocations: 8 kB / 1.285 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.311e-05/0.3075, allocations: 19.84 kB / 1.285 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.453e-05/0.3076, allocations: 31.86 kB / 1.285 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001598/0.3078, allocations: 75.66 kB / 1.285 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3078, allocations: 0 / 1.285 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.122e-06/0.3078, allocations: 0 / 1.285 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.07e-06/0.3078, allocations: 4 kB / 1.285 GB, free: 9.613 MB / 0.9825 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.0007054/0.3085, allocations: 377.4 kB / 1.286 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.3085, allocations: 8.031 kB / 1.286 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001593/0.3087, allocations: 24.81 kB / 1.286 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002296/0.3089, allocations: 130.4 kB / 1.286 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.3089, allocations: 8.375 kB / 1.286 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.04e-05/0.3089, allocations: 8.359 kB / 1.286 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003204/0.3093, allocations: 127.6 kB / 1.286 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.3093, allocations: 0 / 1.286 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.3093, allocations: 4 kB / 1.286 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.798e-06/0.3093, allocations: 0 / 1.286 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003098/0.3096, allocations: 97.58 kB / 1.286 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005842/0.3102, allocations: 280.3 kB / 1.286 GB, free: 8.457 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003328/0.3105, allocations: 108.2 kB / 1.286 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001938/0.3107, allocations: 78.73 kB / 1.287 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.551e-05/0.3107, allocations: 7.922 kB / 1.287 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003014/0.311, allocations: 129 kB / 1.287 GB, free: 8.098 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.311, allocations: 0 / 1.287 GB, free: 8.098 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0007004/0.3117, allocations: 270.6 kB / 1.287 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.555e-05/0.3118, allocations: 81.11 kB / 1.287 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000135/0.3119, allocations: 134.1 kB / 1.287 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.3119, allocations: 33.64 kB / 1.287 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.777e-05/0.312, allocations: 92.14 kB / 1.287 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.678e-05/0.312, allocations: 23.78 kB / 1.287 GB, free: 7.41 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.166e-05/0.3121, allocations: 29.7 kB / 1.287 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001579/0.3123, allocations: 318.8 kB / 1.288 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002142/0.3125, allocations: 111.4 kB / 1.288 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.3127, allocations: 111.3 kB / 1.288 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003554/0.313, allocations: 169.9 kB / 1.288 GB, free: 6.625 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.313, allocations: 0 / 1.288 GB, free: 6.625 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005126/0.3136, allocations: 276.3 kB / 1.288 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.191e-05/0.3136, allocations: 55.41 kB / 1.288 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.3136, allocations: 0 / 1.288 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.3136, allocations: 4 kB / 1.288 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.3137, allocations: 19.97 kB / 1.288 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.3138, allocations: 4 kB / 1.288 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001346/0.3139, allocations: 15.94 kB / 1.288 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.456e-05/0.3139, allocations: 7.938 kB / 1.288 GB, free: 6.207 MB / 0.9825 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.0001419/0.314, allocations: 160.5 kB / 1.289 GB, free: 6.035 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.057e-05/0.3141, allocations: 7.953 kB / 1.289 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.636e-05/0.3141, allocations: 12.72 kB / 1.289 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.3141, allocations: 4 kB / 1.289 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3141, allocations: 0 / 1.289 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.3141, allocations: 0 / 1.289 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006213/0.3147, allocations: 389.5 kB / 1.289 GB, free: 5.578 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.3147, allocations: 0 / 1.289 GB, free: 5.578 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.381e-05/0.3148, allocations: 27.92 kB / 1.289 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.3148, allocations: 3.984 kB / 1.289 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.3148, allocations: 0 / 1.289 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.3148, allocations: 0 / 1.289 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3148, allocations: 4.281 kB / 1.289 GB, free: 5.543 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005187/0.3154, allocations: 298.8 kB / 1.289 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.893e-05/0.3154, allocations: 7.953 kB / 1.289 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.332e-05/0.3154, allocations: 3.938 kB / 1.289 GB, free: 5.211 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.3156, allocations: 23.97 kB / 1.289 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.271e-05/0.3157, allocations: 23.97 kB / 1.289 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.3157, allocations: 0 / 1.289 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.29e-05/0.3158, allocations: 113.1 kB / 1.289 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3158, allocations: 0 / 1.289 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002561/0.316, allocations: 16 kB / 1.289 GB, free: 5.039 MB / 0.9825 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.0001254/0.3161, allocations: 103.2 kB / 1.29 GB, free: 4.93 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005431/0.3167, allocations: 303.8 kB / 1.29 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3167, allocations: 0 / 1.29 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002499/0.3169, allocations: 137 kB / 1.29 GB, free: 4.438 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.3172, allocations: 9.625 kB / 1.29 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005571/0.3178, allocations: 236.9 kB / 1.29 GB, free: 4.164 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.243e-05/0.3179, allocations: 87.27 kB / 1.29 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.082e-05/0.3179, allocations: 11.98 kB / 1.29 GB, free: 4.047 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.152e-05/0.318, allocations: 11.44 kB / 1.29 GB, free: 4.035 MB / 0.9825 GB Notification: Performance of SimCode: time 4.11e-07/0.318, allocations: 0 / 1.29 GB, free: 4.035 MB / 0.9825 GB Notification: Performance of Templates: time 0.004531/0.3225, allocations: 1.455 MB / 1.292 GB, free: 2.625 MB / 0.9825 GB " [Timeout remaining time 299] 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: 8.697382986545563]