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.007315/0.007315, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001682/0.001682, allocations: 197.8 kB / 16.68 MB, free: 5.926 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.573/2.573, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 64.12 kB / 1.054 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7447/0.7462, allocations: 157.4 MB / 1.207 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002761/0.749, allocations: 1.513 MB / 1.209 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008668/0.7498, allocations: 458.9 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.391e-05/0.7499, allocations: 0 / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001084/0.7501, allocations: 7.875 kB / 1.209 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.113e-05/0.7501, allocations: 15.86 kB / 1.209 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002307/0.7504, allocations: 31.97 kB / 1.209 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001762/0.7506, allocations: 95.62 kB / 1.209 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.7507, allocations: 16.19 kB / 1.209 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.7508, allocations: 35.84 kB / 1.209 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.713e-05/0.7509, allocations: 39.83 kB / 1.209 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.677e-05/0.751, allocations: 8 kB / 1.209 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.669e-05/0.751, allocations: 8 kB / 1.209 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.785e-05/0.7511, allocations: 19.92 kB / 1.209 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.837e-05/0.7511, allocations: 27.86 kB / 1.209 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.7513, allocations: 77.95 kB / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.7513, allocations: 4 kB / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.264e-06/0.7513, allocations: 0 / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.311e-06/0.7513, allocations: 0 / 1.21 GB, free: 11.24 MB / 0.9356 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.0008759/0.7522, allocations: 450.5 kB / 1.21 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.7522, allocations: 12.03 kB / 1.21 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.778e-05/0.7523, allocations: 38.75 kB / 1.21 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.852e-05/0.7524, allocations: 12.84 kB / 1.21 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00023/0.7526, allocations: 180.2 kB / 1.21 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.7526, allocations: 4.375 kB / 1.21 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.113e-05/0.7526, allocations: 8.359 kB / 1.21 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003122/0.753, allocations: 97.58 kB / 1.21 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.753, allocations: 0 / 1.21 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.753, allocations: 0 / 1.21 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.753, allocations: 4 kB / 1.21 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003095/0.7533, allocations: 75.86 kB / 1.21 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006229/0.754, allocations: 332.6 kB / 1.211 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003078/0.7543, allocations: 82.61 kB / 1.211 GB, free: 9.797 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001696/0.7545, allocations: 60.88 kB / 1.211 GB, free: 9.734 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.934e-05/0.7545, allocations: 3.984 kB / 1.211 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003561/0.7549, allocations: 103.3 kB / 1.211 GB, free: 9.617 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 2.384e-06/0.7549, allocations: 4 kB / 1.211 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0006461/0.7555, allocations: 207.2 kB / 1.211 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.609e-05/0.7556, allocations: 85.03 kB / 1.211 GB, free: 9.297 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.7557, allocations: 134.1 kB / 1.211 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.7557, allocations: 25.7 kB / 1.211 GB, free: 9.121 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.481e-05/0.7558, allocations: 100.1 kB / 1.211 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.474e-05/0.7558, allocations: 27.66 kB / 1.212 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.057e-05/0.7559, allocations: 25.7 kB / 1.212 GB, free: 8.961 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.756, allocations: 326.7 kB / 1.212 GB, free: 8.633 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001775/0.7562, allocations: 47.97 kB / 1.212 GB, free: 8.586 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.7564, allocations: 47.95 kB / 1.212 GB, free: 8.539 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003656/0.7568, allocations: 177.9 kB / 1.212 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.7568, allocations: 0 / 1.212 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004475/0.7572, allocations: 204.9 kB / 1.212 GB, free: 8.125 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.393e-05/0.7573, allocations: 63.39 kB / 1.212 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.7573, allocations: 3.984 kB / 1.212 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.7573, allocations: 0 / 1.212 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/0.7575, allocations: 27.92 kB / 1.212 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.7575, allocations: 0 / 1.212 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/0.7576, allocations: 23.91 kB / 1.212 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.7577, allocations: 0 / 1.212 GB, free: 7.996 MB / 0.9356 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.000122/0.7578, allocations: 143.5 kB / 1.213 GB, free: 7.84 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.214e-05/0.7578, allocations: 7.906 kB / 1.213 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.19e-05/0.7579, allocations: 20.7 kB / 1.213 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.7579, allocations: 0 / 1.213 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.7579, allocations: 4 kB / 1.213 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.7579, allocations: 4.219 kB / 1.213 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006097/0.7585, allocations: 428.2 kB / 1.213 GB, free: 7.316 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.7585, allocations: 0 / 1.213 GB, free: 7.316 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.139e-05/0.7586, allocations: 15.92 kB / 1.213 GB, free: 7.301 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.7586, allocations: 0 / 1.213 GB, free: 7.301 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.7586, allocations: 4 kB / 1.213 GB, free: 7.297 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.7587, allocations: 11.94 kB / 1.213 GB, free: 7.285 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.7587, allocations: 0 / 1.213 GB, free: 7.285 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004672/0.7591, allocations: 269.1 kB / 1.213 GB, free: 7 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.772e-05/0.7592, allocations: 84.95 kB / 1.213 GB, free: 6.898 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.7592, allocations: 7.984 kB / 1.213 GB, free: 6.891 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.7594, allocations: 19.92 kB / 1.213 GB, free: 6.871 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.98e-05/0.7595, allocations: 23.97 kB / 1.213 GB, free: 6.848 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.7595, allocations: 4 kB / 1.213 GB, free: 6.844 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.992e-05/0.7596, allocations: 97.52 kB / 1.214 GB, free: 6.75 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.623e-06/0.7596, allocations: 0 / 1.214 GB, free: 6.75 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002587/0.7599, allocations: 23.94 kB / 1.214 GB, free: 6.727 MB / 0.9356 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.0007616/0.7606, allocations: 0.8 MB / 1.214 GB, free: 5.895 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004687/0.7611, allocations: 230.6 kB / 1.215 GB, free: 5.645 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.7611, allocations: 0 / 1.215 GB, free: 5.645 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002288/0.7614, allocations: 115.4 kB / 1.215 GB, free: 5.52 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.7617, allocations: 12.62 kB / 1.215 GB, free: 5.508 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002294/0.764, allocations: 1.695 MB / 1.216 GB, free: 3.719 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.7642, allocations: 0.6963 MB / 1.217 GB, free: 2.996 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.639e-05/0.7643, allocations: 11.98 kB / 1.217 GB, free: 2.984 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.085e-05/0.7644, allocations: 27.42 kB / 1.217 GB, free: 2.957 MB / 0.9356 GB Notification: Performance of SimCode: time 4.91e-07/0.7644, allocations: 0 / 1.217 GB, free: 2.957 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02025/0.7846, allocations: 2.599 MB / 1.22 GB, free: 0.5117 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.73/8.515, allocations: 15.86 kB / 1.22 GB, free: 0.4961 MB / 0.9356 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