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.001417/0.001421, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.267/1.267, allocations: 222.9 MB / 240.2 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.596/2.596, allocations: 469.4 MB / 0.742 GB, free: 7.762 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 63.03 kB / 0.9083 GB, free: 34.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2576, allocations: 159.1 MB / 1.064 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002747/0.2604, allocations: 1.532 MB / 1.065 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007507/0.2612, allocations: 452.6 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.248e-05/0.2612, allocations: 0 / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 8.317e-05/0.2613, allocations: 3.938 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.643e-05/0.2614, allocations: 27.8 kB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001941/0.2616, allocations: 27.97 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001469/0.2617, allocations: 91.69 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.2619, allocations: 16.19 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.262, allocations: 39.84 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.304e-05/0.2621, allocations: 35.83 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.859e-05/0.2621, allocations: 8 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.025e-05/0.2621, allocations: 8 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.372e-05/0.2622, allocations: 15.92 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.098e-05/0.2623, allocations: 31.8 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001258/0.2624, allocations: 79.98 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.2624, allocations: 0 / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.312e-06/0.2624, allocations: 0 / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.2624, allocations: 4 kB / 1.066 GB, free: 12.19 MB / 0.8262 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.0006706/0.2631, allocations: 442.6 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.2631, allocations: 8.031 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.772e-05/0.2632, allocations: 42.73 kB / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.673e-05/0.2632, allocations: 8.844 kB / 1.066 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.2634, allocations: 184.2 kB / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.797e-06/0.2634, allocations: 384 / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.931e-05/0.2634, allocations: 12.36 kB / 1.067 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002773/0.2637, allocations: 105.5 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-06/0.2637, allocations: 0 / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.2638, allocations: 0 / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.2638, allocations: 4 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00029/0.2641, allocations: 71.92 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005339/0.2646, allocations: 332.7 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002903/0.2649, allocations: 78.52 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001715/0.2651, allocations: 56.94 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.524e-05/0.2651, allocations: 4 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000296/0.2654, allocations: 115.2 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.2654, allocations: 0 / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0006166/0.2661, allocations: 199.3 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.493e-05/0.2661, allocations: 85.11 kB / 1.068 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/0.2662, allocations: 140.1 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.2663, allocations: 25.7 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.924e-05/0.2663, allocations: 96.12 kB / 1.068 GB, free: 9.98 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.479e-05/0.2663, allocations: 27.64 kB / 1.068 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.222e-05/0.2664, allocations: 25.7 kB / 1.068 GB, free: 9.922 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001005/0.2665, allocations: 326.8 kB / 1.068 GB, free: 9.594 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.2667, allocations: 55.91 kB / 1.068 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.2669, allocations: 47.95 kB / 1.068 GB, free: 9.492 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000335/0.2672, allocations: 161.9 kB / 1.069 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2672, allocations: 0 / 1.069 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004359/0.2677, allocations: 216.9 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.399e-05/0.2677, allocations: 59.39 kB / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.2677, allocations: 0 / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.2677, allocations: 4 kB / 1.069 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001229/0.2679, allocations: 15.98 kB / 1.069 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.2679, allocations: 0 / 1.069 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.268, allocations: 23.86 kB / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.2681, allocations: 4.281 kB / 1.069 GB, free: 8.965 MB / 0.8262 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.0001087/0.2682, allocations: 152 kB / 1.069 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.3e-05/0.2682, allocations: 11.91 kB / 1.069 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.807e-05/0.2682, allocations: 16.66 kB / 1.069 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.2682, allocations: 0 / 1.069 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.2682, allocations: 0 / 1.069 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.2683, allocations: 7.922 kB / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005609/0.2688, allocations: 424.2 kB / 1.069 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.2688, allocations: 7.984 kB / 1.069 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.092e-05/0.2689, allocations: 11.98 kB / 1.069 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.2689, allocations: 0 / 1.069 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.269, allocations: 4 kB / 1.069 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.227e-06/0.269, allocations: 7.875 kB / 1.069 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.269, allocations: 0 / 1.069 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004431/0.2694, allocations: 273.1 kB / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.69e-05/0.2695, allocations: 85.02 kB / 1.07 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.283e-05/0.2695, allocations: 0 / 1.07 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.2697, allocations: 19.91 kB / 1.07 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.869e-05/0.2698, allocations: 23.98 kB / 1.07 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.298e-06/0.2698, allocations: 0 / 1.07 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.14e-05/0.2699, allocations: 103.2 kB / 1.07 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.493e-06/0.2699, allocations: 4 kB / 1.07 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002483/0.2701, allocations: 23.94 kB / 1.07 GB, free: 7.695 MB / 0.8262 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.0007275/0.2708, allocations: 0.7964 MB / 1.071 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004484/0.2713, allocations: 230.6 kB / 1.071 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.2713, allocations: 4 kB / 1.071 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002171/0.2715, allocations: 111.4 kB / 1.071 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000274/0.2718, allocations: 17.06 kB / 1.071 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.274, allocations: 1.692 MB / 1.073 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002675/0.2742, allocations: 0.6963 MB / 1.073 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.732e-05/0.2743, allocations: 12.25 kB / 1.073 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.616e-05/0.2744, allocations: 23.42 kB / 1.073 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.2744, allocations: 4 kB / 1.073 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01781/0.2922, allocations: 2.504 MB / 1.076 GB, free: 1.562 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.991/7.283, allocations: 13.3 kB / 1.076 GB, free: 1.555 MB / 0.8262 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 50 --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