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.006676/0.006677, allocations: 100.3 kB / 15.73 MB, free: 6.059 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.001497/0.001497, allocations: 198.6 kB / 16.68 MB, free: 5.969 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.272/1.272, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.144/2.144, allocations: 390.3 MB / 0.6648 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 63.91 kB / 0.9504 GB, free: 8.137 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6834/0.6846, allocations: 140.4 MB / 1.087 GB, free: 5.238 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002203/0.6868, allocations: 1.522 MB / 1.089 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0005923/0.6874, allocations: 457.7 kB / 1.089 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.423e-05/0.6875, allocations: 0 / 1.089 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 8.249e-05/0.6876, allocations: 6.266 kB / 1.089 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.952e-05/0.6876, allocations: 10.14 kB / 1.089 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001851/0.6878, allocations: 30.03 kB / 1.089 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001254/0.6879, allocations: 94.66 kB / 1.09 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.191e-05/0.688, allocations: 15.56 kB / 1.09 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001015/0.6881, allocations: 38.09 kB / 1.09 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.143e-05/0.6882, allocations: 39.91 kB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.106e-05/0.6882, allocations: 10.59 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.47e-05/0.6883, allocations: 5.844 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.999e-05/0.6883, allocations: 18.33 kB / 1.09 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.801e-05/0.6884, allocations: 31.75 kB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001117/0.6885, allocations: 74.5 kB / 1.09 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.6885, allocations: 0.5625 kB / 1.09 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.082e-06/0.6885, allocations: 1.406 kB / 1.09 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.6885, allocations: 0 / 1.09 GB, free: 3.691 MB / 0.8575 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.0005377/0.689, allocations: 446.9 kB / 1.09 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.6891, allocations: 14.17 kB / 1.09 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.024e-05/0.6891, allocations: 34.33 kB / 1.09 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.283e-05/0.6892, allocations: 9.031 kB / 1.09 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.6893, allocations: 186 kB / 1.09 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.6893, allocations: 7.469 kB / 1.09 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.686e-05/0.6893, allocations: 4.531 kB / 1.09 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002666/0.6896, allocations: 98.75 kB / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.6896, allocations: 3.938 kB / 1.091 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.6896, allocations: 9.125 kB / 1.091 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.6896, allocations: 1.062 kB / 1.091 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002743/0.6899, allocations: 75.17 kB / 1.091 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004607/0.6904, allocations: 335.3 kB / 1.091 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002709/0.6907, allocations: 85.38 kB / 1.091 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.6908, allocations: 53.61 kB / 1.091 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.124e-05/0.6908, allocations: 1.062 kB / 1.091 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002617/0.6911, allocations: 110.4 kB / 1.091 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.6911, allocations: 0 / 1.091 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0005774/0.6917, allocations: 206.5 kB / 1.091 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.078e-05/0.6917, allocations: 81.16 kB / 1.091 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.839e-05/0.6918, allocations: 136.2 kB / 1.092 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.6918, allocations: 28 kB / 1.092 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.452e-05/0.6919, allocations: 97.2 kB / 1.092 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.932e-05/0.6919, allocations: 29.2 kB / 1.092 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.687e-05/0.692, allocations: 25.7 kB / 1.092 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.743e-05/0.692, allocations: 323.9 kB / 1.092 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.6922, allocations: 53.12 kB / 1.092 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001582/0.6923, allocations: 46.36 kB / 1.092 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002917/0.6926, allocations: 165.2 kB / 1.092 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.6926, allocations: 0.75 kB / 1.092 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003955/0.693, allocations: 218 kB / 1.092 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.332e-05/0.6931, allocations: 60.88 kB / 1.093 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.6931, allocations: 0 / 1.093 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.6931, allocations: 0.8438 kB / 1.093 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.6932, allocations: 19.38 kB / 1.093 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.6932, allocations: 1.484 kB / 1.093 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001287/0.6934, allocations: 22.52 kB / 1.093 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.6934, allocations: 3.703 kB / 1.093 GB, free: 1.34 MB / 0.8575 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 7.2e-05/0.6935, allocations: 152.9 kB / 1.093 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.827e-05/0.6935, allocations: 9.391 kB / 1.093 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.778e-05/0.6935, allocations: 10.55 kB / 1.093 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.6935, allocations: 6.547 kB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.6935, allocations: 0 / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.6936, allocations: 5.734 kB / 1.093 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004603/0.694, allocations: 420.5 kB / 1.093 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.694, allocations: 0.7969 kB / 1.093 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.561e-05/0.6941, allocations: 17.84 kB / 1.093 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.684e-06/0.6941, allocations: 0.6875 kB / 1.093 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.6941, allocations: 6.266 kB / 1.093 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.6942, allocations: 8.688 kB / 1.093 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.6942, allocations: 0 / 1.093 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003718/0.6945, allocations: 265.9 kB / 1.093 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.074e-05/0.6946, allocations: 87.66 kB / 1.094 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.313e-05/0.6946, allocations: 6.734 kB / 1.094 GB, free: 0.4961 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001456/0.6947, allocations: 21.59 kB / 1.094 GB, free: 500 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.475e-05/0.6948, allocations: 20.11 kB / 1.094 GB, free: 496 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.6949, allocations: 2.812 kB / 1.094 GB, free: 496 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.29e-05/0.6949, allocations: 103.2 kB / 1.094 GB, free: 16.4 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.11e-07/0.695, allocations: 0.6562 kB / 1.094 GB, free: 16.4 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002333/0.6952, allocations: 20.95 kB / 1.094 GB, free: 16.4 MB / 0.8731 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.0006823/0.6959, allocations: 0.8067 MB / 1.095 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004306/0.6963, allocations: 218.6 kB / 1.095 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.6963, allocations: 0.7188 kB / 1.095 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002098/0.6965, allocations: 118 kB / 1.095 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.6968, allocations: 20.02 kB / 1.095 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002044/0.6989, allocations: 1.718 MB / 1.097 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002364/0.6991, allocations: 0.6911 MB / 1.097 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.481e-05/0.6992, allocations: 10.22 kB / 1.097 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.53e-05/0.6992, allocations: 26.09 kB / 1.097 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.6992, allocations: 0 / 1.097 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1817/0.881, allocations: 2.522 MB / 1.1 GB, free: 12.92 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.334/9.215, allocations: 17.19 kB / 1.1 GB, free: 12.91 MB / 0.8731 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