Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_11_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.004748/0.004748, allocations: 100.9 kB / 15.73 MB, free: 6 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.001285/0.001285, allocations: 189.6 kB / 16.67 MB, free: 5.934 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.791/2.791, allocations: 469.8 MB / 0.7425 GB, free: 7.32 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 68.11 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2741, allocations: 159.1 MB / 1.22 GB, free: 14.31 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002564/0.2767, allocations: 1.526 MB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0007346/0.2774, allocations: 447 kB / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.147e-05/0.2775, allocations: 0 / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 9.549e-05/0.2776, allocations: 11.86 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.214e-05/0.2777, allocations: 11.88 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001772/0.2778, allocations: 35.89 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001483/0.278, allocations: 87.77 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.062e-05/0.2781, allocations: 16.17 kB / 1.222 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.2782, allocations: 35.86 kB / 1.222 GB, free: 12.13 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.475e-05/0.2783, allocations: 47.81 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.357e-05/0.2783, allocations: 4 kB / 1.222 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 2e-05/0.2784, allocations: 8 kB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.983e-05/0.2784, allocations: 15.92 kB / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.096e-05/0.2785, allocations: 39.8 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.2786, allocations: 63.72 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.2786, allocations: 4 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2786, allocations: 0 / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.917e-06/0.2786, allocations: 0 / 1.222 GB, free: 11.95 MB / 0.9825 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.0006922/0.2793, allocations: 446.5 kB / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.2794, allocations: 12.03 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.848e-05/0.2794, allocations: 42.69 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.288e-05/0.2795, allocations: 8.891 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001876/0.2797, allocations: 192.2 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.2797, allocations: 4.375 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.54e-05/0.2797, allocations: 4.375 kB / 1.223 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002866/0.28, allocations: 97.56 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.28, allocations: 0 / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.28, allocations: 11.94 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.828e-06/0.28, allocations: 0 / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003033/0.2804, allocations: 71.94 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005622/0.2809, allocations: 344.6 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003136/0.2813, allocations: 90.55 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.2814, allocations: 48.95 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.2815, allocations: 3.938 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002927/0.2818, allocations: 107.3 kB / 1.224 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.623e-06/0.2818, allocations: 0 / 1.224 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0006396/0.2824, allocations: 211.2 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.058e-05/0.2825, allocations: 81.11 kB / 1.224 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001155/0.2826, allocations: 134.9 kB / 1.224 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.2826, allocations: 33.7 kB / 1.224 GB, free: 9.816 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.731e-05/0.2827, allocations: 92.08 kB / 1.224 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.2827, allocations: 23.89 kB / 1.224 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.865e-05/0.2828, allocations: 25.72 kB / 1.224 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001392/0.283, allocations: 326.8 kB / 1.225 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001867/0.2831, allocations: 47.95 kB / 1.225 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001652/0.2833, allocations: 43.97 kB / 1.225 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003593/0.2837, allocations: 173.8 kB / 1.225 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.2837, allocations: 0 / 1.225 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000466/0.2842, allocations: 209 kB / 1.225 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.108e-05/0.2842, allocations: 68.75 kB / 1.225 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.377e-06/0.2842, allocations: 0 / 1.225 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.2843, allocations: 0 / 1.225 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.2844, allocations: 15.98 kB / 1.225 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.2844, allocations: 8.266 kB / 1.225 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001357/0.2845, allocations: 23.81 kB / 1.225 GB, free: 8.711 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.634e-05/0.2846, allocations: 4 kB / 1.225 GB, free: 8.707 MB / 0.9825 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.0001237/0.2847, allocations: 152 kB / 1.225 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.092e-05/0.2847, allocations: 11.94 kB / 1.225 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.401e-05/0.2848, allocations: 8.719 kB / 1.225 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.2848, allocations: 4 kB / 1.225 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.2848, allocations: 0 / 1.225 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.2848, allocations: 7.938 kB / 1.225 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006207/0.2854, allocations: 428.5 kB / 1.226 GB, free: 8.023 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2854, allocations: 0 / 1.226 GB, free: 8.023 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.337e-05/0.2855, allocations: 15.98 kB / 1.226 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.2855, allocations: 0 / 1.226 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.2855, allocations: 0 / 1.226 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.534e-06/0.2856, allocations: 8 kB / 1.226 GB, free: 8 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.2856, allocations: 7.984 kB / 1.226 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004842/0.2861, allocations: 265.1 kB / 1.226 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.094e-05/0.2861, allocations: 92.98 kB / 1.226 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.2862, allocations: 0 / 1.226 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001614/0.2863, allocations: 23.92 kB / 1.226 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.402e-05/0.2864, allocations: 27.97 kB / 1.226 GB, free: 7.551 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.308e-06/0.2864, allocations: 0 / 1.226 GB, free: 7.551 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.228e-05/0.2865, allocations: 107.3 kB / 1.226 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2865, allocations: 0 / 1.226 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002422/0.2868, allocations: 19.94 kB / 1.226 GB, free: 7.426 MB / 0.9825 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.000805/0.2876, allocations: 0.8039 MB / 1.227 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004712/0.2881, allocations: 218.7 kB / 1.227 GB, free: 6.352 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2881, allocations: 4 kB / 1.227 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002304/0.2883, allocations: 107.4 kB / 1.228 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.2886, allocations: 23.92 kB / 1.228 GB, free: 6.207 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002378/0.291, allocations: 1.723 MB / 1.229 GB, free: 4.395 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.2913, allocations: 0.6935 MB / 1.23 GB, free: 3.676 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.676e-05/0.2914, allocations: 11.98 kB / 1.23 GB, free: 3.664 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.031e-05/0.2915, allocations: 23.38 kB / 1.23 GB, free: 3.641 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.2915, allocations: 0 / 1.23 GB, free: 3.641 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02177/0.3132, allocations: 2.532 MB / 1.232 GB, free: 1.262 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.534/7.847, allocations: 5.234 kB / 1.232 GB, free: 1.258 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches