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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001217/0.001217, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001174/0.001174, allocations: 197.2 kB / 16.25 MB, free: 6.625 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.183/1.183, allocations: 222.9 MB / 239.9 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.025/2.025, allocations: 390.2 MB / 0.6644 GB, free: 0.543 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 63.89 kB / 0.8122 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4646/0.4658, allocations: 140.4 MB / 0.9492 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002069/0.4679, allocations: 1.579 MB / 0.9508 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000548/0.4685, allocations: 453.8 kB / 0.9512 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.689e-05/0.4685, allocations: 1.719 kB / 0.9512 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.07e-05/0.4686, allocations: 3.938 kB / 0.9512 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.254e-05/0.4687, allocations: 17.22 kB / 0.9512 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001565/0.4688, allocations: 28.39 kB / 0.9513 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001132/0.4689, allocations: 87.3 kB / 0.9513 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.162e-05/0.469, allocations: 21.78 kB / 0.9514 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.722e-05/0.4691, allocations: 35.03 kB / 0.9514 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.306e-05/0.4692, allocations: 41.47 kB / 0.9514 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.076e-05/0.4692, allocations: 6.875 kB / 0.9514 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.529e-05/0.4693, allocations: 6.875 kB / 0.9515 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.531e-05/0.4693, allocations: 18.66 kB / 0.9515 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.408e-05/0.4693, allocations: 32.11 kB / 0.9515 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001054/0.4695, allocations: 71.89 kB / 0.9516 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.4695, allocations: 0 / 0.9516 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.323e-06/0.4695, allocations: 0 / 0.9516 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.728e-06/0.4695, allocations: 0 / 0.9516 GB, free: 7.34 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.000503/0.47, allocations: 458.2 kB / 0.952 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.47, allocations: 10 kB / 0.952 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.429e-05/0.4701, allocations: 39.95 kB / 0.9521 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.308e-05/0.4701, allocations: 10 kB / 0.9521 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001043/0.4702, allocations: 180.5 kB / 0.9522 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.4702, allocations: 7.312 kB / 0.9522 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.4702, allocations: 3.938 kB / 0.9522 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002378/0.4705, allocations: 102.4 kB / 0.9523 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.4705, allocations: 4 kB / 0.9523 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.4705, allocations: 2.25 kB / 0.9524 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.4705, allocations: 1.281 kB / 0.9524 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002416/0.4708, allocations: 73.05 kB / 0.9524 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004064/0.4712, allocations: 340.2 kB / 0.9527 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000243/0.4714, allocations: 80.77 kB / 0.9528 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001359/0.4716, allocations: 52.56 kB / 0.9529 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.589e-05/0.4716, allocations: 0 / 0.9529 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002367/0.4718, allocations: 108.6 kB / 0.953 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.4719, allocations: 1.406 kB / 0.953 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0005095/0.4724, allocations: 206.7 kB / 0.9532 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.61e-05/0.4724, allocations: 79.45 kB / 0.9533 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.045e-05/0.4725, allocations: 137.9 kB / 0.9534 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.4725, allocations: 32.17 kB / 0.9534 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.212e-05/0.4725, allocations: 95.81 kB / 0.9535 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.554e-05/0.4726, allocations: 18.44 kB / 0.9535 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.513e-05/0.4726, allocations: 30.86 kB / 0.9536 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.416e-05/0.4726, allocations: 325.1 kB / 0.9539 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/0.4728, allocations: 43.25 kB / 0.9539 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001309/0.4729, allocations: 51.98 kB / 0.954 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000249/0.4732, allocations: 175.1 kB / 0.9541 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.4732, allocations: 0 / 0.9541 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000349/0.4736, allocations: 211.9 kB / 0.9543 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.4736, allocations: 70.23 kB / 0.9544 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.4736, allocations: 3.938 kB / 0.9544 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.4736, allocations: 0 / 0.9544 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.4737, allocations: 15.52 kB / 0.9544 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.4737, allocations: 0 / 0.9544 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.4739, allocations: 22.2 kB / 0.9544 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.4739, allocations: 3.344 kB / 0.9544 GB, free: 4.719 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.671e-05/0.474, allocations: 150.3 kB / 0.9546 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.66e-05/0.474, allocations: 12.75 kB / 0.9546 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.327e-05/0.474, allocations: 9.875 kB / 0.9546 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.474, allocations: 1.25 kB / 0.9546 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.474, allocations: 1.281 kB / 0.9546 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.474, allocations: 7.922 kB / 0.9546 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004083/0.4744, allocations: 429.7 kB / 0.955 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.4745, allocations: 0 / 0.955 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.863e-05/0.4745, allocations: 17.52 kB / 0.955 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.4745, allocations: 0.875 kB / 0.955 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.4746, allocations: 1.062 kB / 0.955 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.4746, allocations: 5.062 kB / 0.955 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.4746, allocations: 0 / 0.955 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000338/0.4749, allocations: 273.2 kB / 0.9553 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.882e-05/0.4749, allocations: 91.17 kB / 0.9554 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.161e-05/0.475, allocations: 1.031 kB / 0.9554 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.4751, allocations: 20.97 kB / 0.9554 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.534e-05/0.4752, allocations: 24.78 kB / 0.9554 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.749e-06/0.4752, allocations: 6.203 kB / 0.9554 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.864e-05/0.4753, allocations: 101.7 kB / 0.9555 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.4753, allocations: 0 / 0.9555 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000224/0.4755, allocations: 15.41 kB / 0.9556 GB, free: 3.684 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.0004848/0.476, allocations: 0.8015 MB / 0.9563 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003502/0.4763, allocations: 229.8 kB / 0.9566 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.4764, allocations: 0 / 0.9566 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001666/0.4765, allocations: 119.2 kB / 0.9567 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002529/0.4768, allocations: 17.92 kB / 0.9567 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001583/0.4784, allocations: 1.709 MB / 0.9584 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.848e-05/0.4785, allocations: 0.6944 MB / 0.959 GB, free: 468 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.224e-05/0.4785, allocations: 14.7 kB / 0.959 GB, free: 460 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.609e-05/0.4786, allocations: 23.33 kB / 0.9591 GB, free: 440 kB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.4786, allocations: 0 / 0.9591 GB, free: 440 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.212/3.691, allocations: 2.31 MB / 0.9613 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002861/3.691, allocations: 242.8 kB / 0.9616 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.596/5.287, allocations: 4.969 kB / 0.9616 GB, free: 15.07 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