Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001653/0.001653, allocations: 195.6 kB / 16.14 MB, free: 6.648 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.292/1.292, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.16/2.16, allocations: 390.2 MB / 0.6643 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 75.89 kB / 0.812 GB, free: 14.82 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4993/0.5007, allocations: 140.3 MB / 0.9491 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002067/0.5028, allocations: 1.577 MB / 0.9506 GB, free: 7.941 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005526/0.5034, allocations: 458 kB / 0.951 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.635e-05/0.5034, allocations: 0 / 0.951 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.583e-05/0.5035, allocations: 9.203 kB / 0.951 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.179e-05/0.5036, allocations: 13.11 kB / 0.9511 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001416/0.5037, allocations: 32.97 kB / 0.9511 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.373e-05/0.5038, allocations: 71.75 kB / 0.9512 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.11e-05/0.5039, allocations: 25.22 kB / 0.9512 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.025e-05/0.504, allocations: 35.09 kB / 0.9512 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.324e-05/0.5041, allocations: 38.02 kB / 0.9512 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.19e-05/0.5041, allocations: 3.812 kB / 0.9512 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.711e-05/0.5041, allocations: 4.281 kB / 0.9513 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.262e-05/0.5042, allocations: 10.84 kB / 0.9513 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.948e-05/0.5042, allocations: 40.92 kB / 0.9513 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.056e-05/0.5043, allocations: 65.05 kB / 0.9514 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.5043, allocations: 1.219 kB / 0.9514 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.81e-07/0.5043, allocations: 0 / 0.9514 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.005e-06/0.5043, allocations: 0 / 0.9514 GB, free: 7.355 MB / 0.7169 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.0004941/0.5048, allocations: 450.5 kB / 0.9518 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.5049, allocations: 9.688 kB / 0.9518 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.496e-05/0.5049, allocations: 35.91 kB / 0.9518 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.079e-05/0.5049, allocations: 14.16 kB / 0.9519 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001016/0.505, allocations: 190.8 kB / 0.952 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.5051, allocations: 7.141 kB / 0.952 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.739e-05/0.5051, allocations: 4.594 kB / 0.952 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002452/0.5053, allocations: 95.02 kB / 0.9521 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-06/0.5053, allocations: 0 / 0.9521 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.5054, allocations: 1.344 kB / 0.9521 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.5054, allocations: 5.297 kB / 0.9521 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002589/0.5056, allocations: 76.94 kB / 0.9522 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004126/0.506, allocations: 338.4 kB / 0.9525 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.5063, allocations: 88.45 kB / 0.9526 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001435/0.5065, allocations: 51.86 kB / 0.9527 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.162e-05/0.5065, allocations: 0 / 0.9527 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002408/0.5067, allocations: 101 kB / 0.9528 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.5067, allocations: 0 / 0.9528 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0005439/0.5073, allocations: 211.3 kB / 0.953 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.947e-05/0.5073, allocations: 91.56 kB / 0.9531 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.004e-05/0.5074, allocations: 128.3 kB / 0.9532 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.5074, allocations: 32.73 kB / 0.9532 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.068e-05/0.5075, allocations: 94.23 kB / 0.9533 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.712e-05/0.5075, allocations: 24.55 kB / 0.9533 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.603e-05/0.5075, allocations: 25.44 kB / 0.9533 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.652e-05/0.5076, allocations: 325.2 kB / 0.9537 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001594/0.5077, allocations: 43.88 kB / 0.9537 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001463/0.5079, allocations: 55.14 kB / 0.9538 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.5082, allocations: 167.4 kB / 0.9539 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.5082, allocations: 0 / 0.9539 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003759/0.5086, allocations: 211.6 kB / 0.9541 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.821e-05/0.5086, allocations: 62.31 kB / 0.9542 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.5086, allocations: 0 / 0.9542 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.047e-06/0.5086, allocations: 1.344 kB / 0.9542 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.5087, allocations: 18.17 kB / 0.9542 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.5087, allocations: 9.594 kB / 0.9542 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001244/0.5089, allocations: 29.41 kB / 0.9542 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.42e-05/0.5089, allocations: 2.438 kB / 0.9542 GB, free: 4.73 MB / 0.7169 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 6.669e-05/0.509, allocations: 147.4 kB / 0.9544 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.737e-05/0.509, allocations: 12.86 kB / 0.9544 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.553e-05/0.509, allocations: 14.42 kB / 0.9544 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.509, allocations: 0 / 0.9544 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.509, allocations: 1.5 kB / 0.9544 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.509, allocations: 7.938 kB / 0.9544 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004304/0.5095, allocations: 433.8 kB / 0.9548 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.5095, allocations: 0 / 0.9548 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.137e-05/0.5096, allocations: 13.45 kB / 0.9548 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.5096, allocations: 1.531 kB / 0.9548 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.5096, allocations: 1.5 kB / 0.9548 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.5096, allocations: 3.938 kB / 0.9548 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.5096, allocations: 4 kB / 0.9548 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003497/0.51, allocations: 265 kB / 0.9551 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.904e-05/0.51, allocations: 87.86 kB / 0.9552 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.281e-05/0.51, allocations: 5.484 kB / 0.9552 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.5102, allocations: 15.86 kB / 0.9552 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.454e-05/0.5103, allocations: 29.78 kB / 0.9552 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.5103, allocations: 2.312 kB / 0.9552 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.109e-05/0.5103, allocations: 102.4 kB / 0.9553 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of sort global known variables: time 5.71e-07/0.5103, allocations: 0 / 0.9553 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002283/0.5106, allocations: 19.84 kB / 0.9553 GB, free: 3.699 MB / 0.7169 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.0005182/0.5111, allocations: 0.8055 MB / 0.9561 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003667/0.5114, allocations: 218.8 kB / 0.9563 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.5115, allocations: 1.469 kB / 0.9563 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001789/0.5116, allocations: 114.1 kB / 0.9565 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002527/0.5119, allocations: 13.98 kB / 0.9565 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.5136, allocations: 1.71 MB / 0.9581 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.839e-05/0.5137, allocations: 0.6908 MB / 0.9588 GB, free: 500 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.361e-05/0.5138, allocations: 14.83 kB / 0.9588 GB, free: 492 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.68e-05/0.5138, allocations: 26.11 kB / 0.9589 GB, free: 468 kB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.5138, allocations: 4 kB / 0.9589 GB, free: 464 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2754/0.7892, allocations: 2.224 MB / 0.961 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002074/0.7894, allocations: 239.5 kB / 0.9613 GB, free: 15.13 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.669/2.458, allocations: 1.125 kB / 0.9613 GB, free: 15.13 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches