Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_latest_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.005538/0.005538, allocations: 101.9 kB / 15.73 MB, free: 6.469 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.00123/0.00123, allocations: 193.9 kB / 16.67 MB, free: 6.379 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.75/2.75, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 63.89 kB / 1.054 GB, free: 7.68 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3251, allocations: 157.4 MB / 1.207 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002794/0.328, allocations: 1.522 MB / 1.209 GB, free: 8.645 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0008238/0.3288, allocations: 455.2 kB / 1.209 GB, free: 8.195 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.029e-05/0.3289, allocations: 4 kB / 1.209 GB, free: 8.191 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001012/0.329, allocations: 7.875 kB / 1.209 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.164e-05/0.3291, allocations: 11.86 kB / 1.209 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002217/0.3294, allocations: 27.97 kB / 1.209 GB, free: 8.145 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001685/0.3295, allocations: 95.69 kB / 1.209 GB, free: 8.051 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.3297, allocations: 12.19 kB / 1.209 GB, free: 8.039 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001622/0.3298, allocations: 43.84 kB / 1.209 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.477e-05/0.3299, allocations: 35.84 kB / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.616e-05/0.33, allocations: 7.984 kB / 1.209 GB, free: 7.953 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.746e-05/0.33, allocations: 12 kB / 1.209 GB, free: 7.941 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.533e-05/0.33, allocations: 15.92 kB / 1.209 GB, free: 7.926 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.514e-05/0.3301, allocations: 35.8 kB / 1.209 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001464/0.3303, allocations: 75.98 kB / 1.21 GB, free: 7.816 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.3303, allocations: 0 / 1.21 GB, free: 7.816 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3303, allocations: 0 / 1.21 GB, free: 7.816 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.3303, allocations: 0 / 1.21 GB, free: 7.816 MB / 0.9669 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.0006906/0.331, allocations: 438.6 kB / 1.21 GB, free: 7.328 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.331, allocations: 12.62 kB / 1.21 GB, free: 7.316 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.03e-05/0.3311, allocations: 42.73 kB / 1.21 GB, free: 7.266 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.115e-05/0.3311, allocations: 8.844 kB / 1.21 GB, free: 7.258 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/0.3313, allocations: 190.8 kB / 1.21 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.3313, allocations: 4.375 kB / 1.21 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.19e-05/0.3314, allocations: 8.375 kB / 1.21 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002899/0.3317, allocations: 93.56 kB / 1.21 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.425e-06/0.3317, allocations: 3.938 kB / 1.21 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.3317, allocations: 4 kB / 1.21 GB, free: 6.918 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.3317, allocations: 0 / 1.21 GB, free: 6.918 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002754/0.332, allocations: 79.86 kB / 1.21 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005794/0.3326, allocations: 332.7 kB / 1.211 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002926/0.3329, allocations: 90.55 kB / 1.211 GB, free: 6.367 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.3331, allocations: 52.94 kB / 1.211 GB, free: 6.312 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.3331, allocations: 0 / 1.211 GB, free: 6.312 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002967/0.3334, allocations: 103.3 kB / 1.211 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 2.174e-06/0.3334, allocations: 3.938 kB / 1.211 GB, free: 6.195 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0006276/0.334, allocations: 211.1 kB / 1.211 GB, free: 5.977 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.3341, allocations: 85.11 kB / 1.211 GB, free: 5.875 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.3342, allocations: 135.8 kB / 1.211 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.3343, allocations: 33.7 kB / 1.211 GB, free: 5.691 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.761e-05/0.3343, allocations: 100 kB / 1.211 GB, free: 5.59 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.3343, allocations: 11.81 kB / 1.211 GB, free: 5.578 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.906e-05/0.3344, allocations: 33.7 kB / 1.212 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001024/0.3345, allocations: 322.8 kB / 1.212 GB, free: 5.215 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001637/0.3347, allocations: 43.97 kB / 1.212 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001489/0.3348, allocations: 51.95 kB / 1.212 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003189/0.3352, allocations: 173.8 kB / 1.212 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.3352, allocations: 0 / 1.212 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004248/0.3356, allocations: 209.1 kB / 1.212 GB, free: 4.707 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.928e-05/0.3357, allocations: 68.95 kB / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.3357, allocations: 0 / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.3357, allocations: 0 / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/0.3359, allocations: 19.92 kB / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.3359, allocations: 4 kB / 1.212 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001423/0.336, allocations: 19.86 kB / 1.212 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.015e-05/0.336, allocations: 7.984 kB / 1.212 GB, free: 4.578 MB / 0.9669 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.0001215/0.3362, allocations: 147.5 kB / 1.213 GB, free: 4.418 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.372e-05/0.3362, allocations: 7.906 kB / 1.213 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.565e-05/0.3362, allocations: 12.72 kB / 1.213 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.3363, allocations: 3.984 kB / 1.213 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3363, allocations: 0 / 1.213 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.77e-06/0.3363, allocations: 11.94 kB / 1.213 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005924/0.3369, allocations: 428.1 kB / 1.213 GB, free: 3.898 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.3369, allocations: 0 / 1.213 GB, free: 3.898 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.258e-05/0.337, allocations: 15.98 kB / 1.213 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.337, allocations: 0 / 1.213 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.337, allocations: 0 / 1.213 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/0.337, allocations: 7.938 kB / 1.213 GB, free: 3.875 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.337, allocations: 4 kB / 1.213 GB, free: 3.871 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00043/0.3375, allocations: 265.2 kB / 1.213 GB, free: 3.59 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.559e-05/0.3375, allocations: 85 kB / 1.213 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.733e-05/0.3376, allocations: 7.938 kB / 1.213 GB, free: 3.48 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.3377, allocations: 19.91 kB / 1.213 GB, free: 3.461 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.3379, allocations: 27.92 kB / 1.213 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.3379, allocations: 7.984 kB / 1.213 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.398e-05/0.338, allocations: 103.3 kB / 1.214 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.21e-07/0.338, allocations: 0 / 1.214 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002511/0.3382, allocations: 16 kB / 1.214 GB, free: 3.309 MB / 0.9669 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.0007635/0.339, allocations: 0.7961 MB / 1.214 GB, free: 2.48 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000467/0.3395, allocations: 230.6 kB / 1.215 GB, free: 2.23 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3395, allocations: 0 / 1.215 GB, free: 2.23 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002146/0.3397, allocations: 107.4 kB / 1.215 GB, free: 2.113 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.34, allocations: 24.73 kB / 1.215 GB, free: 2.094 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002396/0.3424, allocations: 1.711 MB / 1.216 GB, free: 292 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.3428, allocations: 0.7001 MB / 1.217 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.566e-05/0.3428, allocations: 7.984 kB / 1.217 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.399e-05/0.3429, allocations: 23.42 kB / 1.217 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of SimCode: time 2.71e-07/0.3429, allocations: 4 kB / 1.217 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02007/0.363, allocations: 2.583 MB / 1.22 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.685/8.048, allocations: 12.02 kB / 1.22 GB, free: 13.08 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,act1.y,act2.y,act3.y,reqCou.nInc Variables in the result:act1.amplitude,act1.nperiod,act1.offset,act1.period,act1.startTime,act1.width,act1.y,act2.amplitude,act2.f,act2.offset,act2.phase,act2.startTime,act2.y,act3.k,act3.y,reqCou.nAct,reqCou.nInc,reqCou.uAct[1],reqCou.uAct[2],reqCou.uAct[3],reqCou.uTri,time