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.001823/0.001823, allocations: 114.3 kB / 18.94 MB, free: 2.789 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.001966/0.001966, allocations: 218.7 kB / 22.26 MB, free: 5.207 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.513/1.513, allocations: 230.6 MB / 256 MB, free: 7.973 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.715/2.715, allocations: 476.7 MB / 0.7707 GB, free: 4.246 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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) [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.002041/0.002041, allocations: 63.16 kB / 1.117 GB, free: 39.78 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.3166, allocations: 170 MB / 1.283 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.00266/0.3193, allocations: 1.562 MB / 1.285 GB, free: 10 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009117/0.3202, allocations: 0.5122 MB / 1.285 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.989e-05/0.3203, allocations: 3.938 kB / 1.285 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 8.396e-05/0.3204, allocations: 7.922 kB / 1.285 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.815e-05/0.3204, allocations: 23.86 kB / 1.285 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002556/0.3207, allocations: 35.89 kB / 1.285 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001583/0.3208, allocations: 87.77 kB / 1.286 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.149e-05/0.3209, allocations: 19.92 kB / 1.286 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.3211, allocations: 43.84 kB / 1.286 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.85e-05/0.3212, allocations: 43.77 kB / 1.286 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.487e-05/0.3212, allocations: 8 kB / 1.286 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.362e-05/0.3212, allocations: 12 kB / 1.286 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.891e-05/0.3213, allocations: 15.92 kB / 1.286 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.532e-05/0.3213, allocations: 31.86 kB / 1.286 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001545/0.3215, allocations: 87.16 kB / 1.286 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3215, allocations: 0 / 1.286 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3215, allocations: 0 / 1.286 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.055e-06/0.3215, allocations: 0 / 1.286 GB, free: 9.078 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.0006626/0.3222, allocations: 375.3 kB / 1.286 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.3222, allocations: 12.03 kB / 1.286 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.997e-05/0.3222, allocations: 38.69 kB / 1.286 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001494/0.3224, allocations: 24.88 kB / 1.286 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002306/0.3226, allocations: 136.6 kB / 1.286 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.3226, allocations: 4.375 kB / 1.286 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.989e-05/0.3226, allocations: 4.375 kB / 1.286 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002818/0.3229, allocations: 97.75 kB / 1.286 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.3229, allocations: 0 / 1.286 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.323, allocations: 4 kB / 1.286 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.323, allocations: 3.938 kB / 1.286 GB, free: 8.316 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002839/0.3232, allocations: 71.94 kB / 1.287 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005778/0.3238, allocations: 307.8 kB / 1.287 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000289/0.3241, allocations: 78.55 kB / 1.287 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.3243, allocations: 52.95 kB / 1.287 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/0.3243, allocations: 0 / 1.287 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002946/0.3246, allocations: 107.3 kB / 1.287 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.3246, allocations: 0 / 1.287 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.000633/0.3252, allocations: 223.1 kB / 1.287 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.036e-05/0.3253, allocations: 81.11 kB / 1.287 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.3254, allocations: 135.9 kB / 1.287 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.3254, allocations: 25.7 kB / 1.288 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.666e-05/0.3255, allocations: 96.12 kB / 1.288 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.772e-05/0.3255, allocations: 23.8 kB / 1.288 GB, free: 7.023 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.787e-05/0.3256, allocations: 29.7 kB / 1.288 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3257, allocations: 326.7 kB / 1.288 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.3259, allocations: 47.95 kB / 1.288 GB, free: 6.613 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.326, allocations: 47.95 kB / 1.288 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003379/0.3264, allocations: 177.8 kB / 1.288 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.3264, allocations: 0 / 1.288 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004387/0.3268, allocations: 205 kB / 1.288 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.481e-05/0.3269, allocations: 63.39 kB / 1.288 GB, free: 6.078 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3269, allocations: 0 / 1.288 GB, free: 6.078 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.3269, allocations: 3.938 kB / 1.288 GB, free: 6.074 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.327, allocations: 15.98 kB / 1.289 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.327, allocations: 0 / 1.289 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.3271, allocations: 31.88 kB / 1.289 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.3272, allocations: 3.984 kB / 1.289 GB, free: 6.023 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.0001223/0.3273, allocations: 147.5 kB / 1.289 GB, free: 5.863 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.079e-05/0.3273, allocations: 7.953 kB / 1.289 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.597e-05/0.3273, allocations: 20.7 kB / 1.289 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3273, allocations: 0 / 1.289 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.3273, allocations: 0 / 1.289 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.3273, allocations: 3.938 kB / 1.289 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005958/0.3279, allocations: 403.5 kB / 1.289 GB, free: 5.379 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3279, allocations: 0 / 1.289 GB, free: 5.379 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.674e-05/0.328, allocations: 12.27 kB / 1.289 GB, free: 5.367 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.328, allocations: 0 / 1.289 GB, free: 5.367 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.328, allocations: 4 kB / 1.289 GB, free: 5.363 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.328, allocations: 7.953 kB / 1.289 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.3281, allocations: 3.984 kB / 1.289 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004641/0.3285, allocations: 273.1 kB / 1.289 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.902e-05/0.3285, allocations: 11.94 kB / 1.289 GB, free: 5.051 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.401e-05/0.3286, allocations: 3.938 kB / 1.289 GB, free: 5.047 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.3287, allocations: 19.86 kB / 1.289 GB, free: 5.027 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.977e-05/0.3288, allocations: 31.95 kB / 1.289 GB, free: 4.996 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-06/0.3288, allocations: 4 kB / 1.289 GB, free: 4.992 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.877e-05/0.3289, allocations: 109.8 kB / 1.29 GB, free: 4.887 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3289, allocations: 0 / 1.29 GB, free: 4.887 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002475/0.3291, allocations: 19.98 kB / 1.29 GB, free: 4.867 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.0007543/0.3299, allocations: 0.7999 MB / 1.29 GB, free: 4.035 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004591/0.3304, allocations: 222.6 kB / 1.291 GB, free: 3.793 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3304, allocations: 0 / 1.291 GB, free: 3.793 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002079/0.3306, allocations: 103.4 kB / 1.291 GB, free: 3.68 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.3309, allocations: 19.94 kB / 1.291 GB, free: 3.66 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/0.3332, allocations: 1.712 MB / 1.292 GB, free: 1.852 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.3335, allocations: 0.6961 MB / 1.293 GB, free: 1.129 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.793e-05/0.3336, allocations: 11.98 kB / 1.293 GB, free: 1.117 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.891e-05/0.3337, allocations: 27.42 kB / 1.293 GB, free: 1.09 MB / 0.9825 GB Notification: Performance of SimCode: time 4.6e-07/0.3337, allocations: 0 / 1.293 GB, free: 1.09 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02802/0.3617, allocations: 2.729 MB / 1.296 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.08, allocations: 2.375 kB / 1.296 GB, free: 14.5 MB / 0.9981 GB " [Timeout remaining time 288] (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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv --start-time 0 --stop-time 600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/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] "Error: Could not read variable act1.y in file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv. Warning: Get data of variable act1.y from file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv failed! Error: Could not read variable act2.y in file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv. Warning: Get data of variable act2.y from file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv failed! Error: Could not read variable act3.y in file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv. Warning: Get data of variable act3.y from file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv failed! Error: Could not read variable reqCou.nInc in file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv. Warning: Get data of variable reqCou.nInc from file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.002507426999728]