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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.007794/0.007794, allocations: 102.5 kB / 15.74 MB, free: 6.031 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.002119/0.002119, allocations: 194.8 kB / 16.67 MB, free: 5.961 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.45/1.45, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.887/2.887, allocations: 482.4 MB / 0.7548 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 68.11 kB / 1.083 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2807, allocations: 162.2 MB / 1.241 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002694/0.2834, allocations: 1.527 MB / 1.243 GB, free: 8.695 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0007368/0.2842, allocations: 446.9 kB / 1.243 GB, free: 8.254 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.355e-05/0.2842, allocations: 4 kB / 1.243 GB, free: 8.25 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 8.624e-05/0.2843, allocations: 11.88 kB / 1.243 GB, free: 8.238 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.058e-05/0.2844, allocations: 11.86 kB / 1.243 GB, free: 8.227 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001746/0.2845, allocations: 35.95 kB / 1.243 GB, free: 8.191 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001425/0.2847, allocations: 83.7 kB / 1.244 GB, free: 8.109 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.657e-05/0.2848, allocations: 24.17 kB / 1.244 GB, free: 8.086 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001055/0.2849, allocations: 35.84 kB / 1.244 GB, free: 8.051 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.661e-05/0.285, allocations: 47.81 kB / 1.244 GB, free: 8.004 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.603e-05/0.285, allocations: 4 kB / 1.244 GB, free: 8 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.771e-05/0.2851, allocations: 8 kB / 1.244 GB, free: 7.992 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.016e-05/0.2851, allocations: 11.94 kB / 1.244 GB, free: 7.98 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.112e-05/0.2852, allocations: 35.8 kB / 1.244 GB, free: 7.945 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.2853, allocations: 71.7 kB / 1.244 GB, free: 7.875 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.786e-06/0.2853, allocations: 0 / 1.244 GB, free: 7.875 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2853, allocations: 4 kB / 1.244 GB, free: 7.871 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.948e-06/0.2853, allocations: 0 / 1.244 GB, free: 7.871 MB / 0.9981 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.0006867/0.286, allocations: 444.4 kB / 1.244 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.2861, allocations: 16.02 kB / 1.244 GB, free: 7.363 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.615e-05/0.2861, allocations: 34.75 kB / 1.244 GB, free: 7.32 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.478e-05/0.2862, allocations: 12.89 kB / 1.244 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001879/0.2863, allocations: 188.2 kB / 1.244 GB, free: 7.086 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.243e-06/0.2864, allocations: 8.375 kB / 1.244 GB, free: 7.078 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.15e-05/0.2864, allocations: 8.359 kB / 1.244 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002876/0.2867, allocations: 97.58 kB / 1.245 GB, free: 6.969 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.2867, allocations: 0 / 1.245 GB, free: 6.969 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.2867, allocations: 0 / 1.245 GB, free: 6.969 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.2867, allocations: 0 / 1.245 GB, free: 6.969 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003047/0.287, allocations: 79.86 kB / 1.245 GB, free: 6.891 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005606/0.2876, allocations: 332.7 kB / 1.245 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002993/0.2879, allocations: 82.55 kB / 1.245 GB, free: 6.426 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.2881, allocations: 60.94 kB / 1.245 GB, free: 6.363 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.231e-05/0.2881, allocations: 0 / 1.245 GB, free: 6.363 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002868/0.2884, allocations: 107.2 kB / 1.245 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.2884, allocations: 3.938 kB / 1.245 GB, free: 6.242 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0006306/0.2891, allocations: 211.2 kB / 1.245 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/0.2891, allocations: 81.05 kB / 1.245 GB, free: 5.926 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.2893, allocations: 130.1 kB / 1.246 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.2893, allocations: 33.7 kB / 1.246 GB, free: 5.746 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.179e-05/0.2894, allocations: 92.12 kB / 1.246 GB, free: 5.652 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.625e-05/0.2894, allocations: 23.84 kB / 1.246 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.847e-05/0.2895, allocations: 29.7 kB / 1.246 GB, free: 5.594 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.2896, allocations: 322.8 kB / 1.246 GB, free: 5.27 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001789/0.2898, allocations: 47.97 kB / 1.246 GB, free: 5.223 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001666/0.29, allocations: 47.95 kB / 1.246 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003444/0.2903, allocations: 169.9 kB / 1.246 GB, free: 4.988 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2903, allocations: 0 / 1.246 GB, free: 4.988 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000456/0.2908, allocations: 208.9 kB / 1.246 GB, free: 4.766 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.398e-05/0.2908, allocations: 63.39 kB / 1.247 GB, free: 4.691 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-06/0.2909, allocations: 0 / 1.247 GB, free: 4.691 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.2909, allocations: 0 / 1.247 GB, free: 4.691 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.291, allocations: 23.92 kB / 1.247 GB, free: 4.668 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.291, allocations: 0 / 1.247 GB, free: 4.668 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000139/0.2912, allocations: 28.09 kB / 1.247 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.859e-05/0.2912, allocations: 11.98 kB / 1.247 GB, free: 4.629 MB / 0.9981 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.0001295/0.2913, allocations: 143.5 kB / 1.247 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.206e-05/0.2914, allocations: 15.88 kB / 1.247 GB, free: 4.457 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.429e-05/0.2914, allocations: 20.7 kB / 1.247 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.2914, allocations: 0 / 1.247 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.2914, allocations: 0 / 1.247 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.2914, allocations: 3.938 kB / 1.247 GB, free: 4.43 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006095/0.292, allocations: 436.1 kB / 1.247 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.292, allocations: 0 / 1.247 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.995e-05/0.2921, allocations: 11.98 kB / 1.247 GB, free: 3.93 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.2921, allocations: 0 / 1.247 GB, free: 3.93 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.2922, allocations: 4 kB / 1.247 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.646e-06/0.2922, allocations: 3.938 kB / 1.247 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2922, allocations: 0 / 1.247 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004675/0.2926, allocations: 269.1 kB / 1.247 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.416e-05/0.2927, allocations: 81.06 kB / 1.248 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.343e-05/0.2927, allocations: 7.938 kB / 1.248 GB, free: 3.531 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.2929, allocations: 23.91 kB / 1.248 GB, free: 3.508 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.638e-05/0.293, allocations: 23.97 kB / 1.248 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.293, allocations: 4 kB / 1.248 GB, free: 3.48 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 7.425e-05/0.2931, allocations: 105.9 kB / 1.248 GB, free: 3.379 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2931, allocations: 3.938 kB / 1.248 GB, free: 3.375 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00024/0.2934, allocations: 16 kB / 1.248 GB, free: 3.359 MB / 0.9981 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.0007942/0.2942, allocations: 0.8121 MB / 1.249 GB, free: 2.516 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004679/0.2946, allocations: 226.7 kB / 1.249 GB, free: 2.27 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2946, allocations: 0 / 1.249 GB, free: 2.27 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002271/0.2949, allocations: 111.4 kB / 1.249 GB, free: 2.148 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002599/0.2951, allocations: 10.75 kB / 1.249 GB, free: 2.141 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002296/0.2975, allocations: 1.716 MB / 1.251 GB, free: 340 kB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4699/0.7673, allocations: 0.6889 MB / 1.251 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.452e-05/0.7675, allocations: 13.02 kB / 1.251 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.241e-05/0.7675, allocations: 25.84 kB / 1.251 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of SimCode: time 4.81e-07/0.7675, allocations: 2.531 kB / 1.251 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02241/0.79, allocations: 2.536 MB / 1.254 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.713/8.503, allocations: 4.859 kB / 1.254 GB, free: 14.45 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv --start-time 0 --stop-time 600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 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.csv","/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) Reference file matches