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.001328/0.001328, 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.001747/0.001747, allocations: 191.7 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.315/1.315, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.455/2.455, allocations: 469.8 MB / 0.7424 GB, free: 7.344 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 63.81 kB / 0.9087 GB, free: 34.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2326, allocations: 159.2 MB / 1.064 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002373/0.235, allocations: 1.52 MB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006389/0.2356, allocations: 458.9 kB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.917e-05/0.2357, allocations: 0 / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 7.268e-05/0.2358, allocations: 3.938 kB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.1e-05/0.2358, allocations: 15.8 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001615/0.236, allocations: 31.97 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001347/0.2361, allocations: 95.69 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.731e-05/0.2362, allocations: 16.19 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.623e-05/0.2363, allocations: 39.84 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.085e-05/0.2364, allocations: 31.84 kB / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.541e-05/0.2364, allocations: 11.98 kB / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.503e-05/0.2364, allocations: 4 kB / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.689e-05/0.2365, allocations: 19.92 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.349e-05/0.2366, allocations: 35.8 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.00011/0.2367, allocations: 79.98 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.2367, allocations: 0 / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2367, allocations: 0 / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.686e-06/0.2367, allocations: 0 / 1.066 GB, free: 11.79 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.0006068/0.2373, allocations: 442.6 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 2.901e-05/0.2373, allocations: 8.031 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.226e-05/0.2374, allocations: 42.73 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.575e-05/0.2374, allocations: 12.84 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.2376, allocations: 180.8 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.2376, allocations: 4.375 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.626e-05/0.2376, allocations: 4.375 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002545/0.2379, allocations: 105.4 kB / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.2379, allocations: 0 / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.2379, allocations: 4 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-06/0.2379, allocations: 0 / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002646/0.2382, allocations: 83.91 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004979/0.2387, allocations: 324.7 kB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002679/0.239, allocations: 82.52 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.2391, allocations: 56.94 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.228e-05/0.2392, allocations: 3.984 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000254/0.2394, allocations: 111.3 kB / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.2394, allocations: 0 / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0005601/0.24, allocations: 207.3 kB / 1.068 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/0.2401, allocations: 85.05 kB / 1.068 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.2402, allocations: 139.9 kB / 1.068 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.2402, allocations: 25.7 kB / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.681e-05/0.2403, allocations: 96.12 kB / 1.068 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/0.2403, allocations: 19.72 kB / 1.068 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.787e-05/0.2404, allocations: 29.7 kB / 1.068 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.2405, allocations: 322.8 kB / 1.069 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.2406, allocations: 51.89 kB / 1.069 GB, free: 9.148 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.2408, allocations: 47.95 kB / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003101/0.2411, allocations: 173.9 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2411, allocations: 0 / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004068/0.2415, allocations: 213 kB / 1.069 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.172e-05/0.2416, allocations: 64.95 kB / 1.069 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.2416, allocations: 0 / 1.069 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.788e-06/0.2416, allocations: 0 / 1.069 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.2417, allocations: 15.98 kB / 1.069 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.666e-06/0.2417, allocations: 0 / 1.069 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.2419, allocations: 31.86 kB / 1.069 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.2419, allocations: 4 kB / 1.069 GB, free: 8.559 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.0001047/0.242, allocations: 147.5 kB / 1.069 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.794e-05/0.242, allocations: 7.906 kB / 1.069 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.514e-05/0.242, allocations: 12.72 kB / 1.069 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.2421, allocations: 0 / 1.069 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.2421, allocations: 0 / 1.069 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2421, allocations: 7.938 kB / 1.069 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005305/0.2426, allocations: 428.2 kB / 1.07 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.2426, allocations: 0 / 1.07 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.357e-05/0.2427, allocations: 15.97 kB / 1.07 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.2427, allocations: 0 / 1.07 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.2427, allocations: 4 kB / 1.07 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.2427, allocations: 7.875 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2427, allocations: 0 / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004041/0.2431, allocations: 269.1 kB / 1.07 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.57e-05/0.2432, allocations: 81.02 kB / 1.07 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.152e-05/0.2432, allocations: 8 kB / 1.07 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.2434, allocations: 19.91 kB / 1.07 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.277e-05/0.2435, allocations: 23.92 kB / 1.07 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.2435, allocations: 8 kB / 1.07 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.086e-05/0.2435, allocations: 100.7 kB / 1.07 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2435, allocations: 0 / 1.07 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002144/0.2438, allocations: 20 kB / 1.07 GB, free: 7.305 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.000696/0.2445, allocations: 0.8048 MB / 1.071 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004117/0.2449, allocations: 226.6 kB / 1.071 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.2449, allocations: 4 kB / 1.071 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001953/0.2451, allocations: 111.7 kB / 1.071 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.2453, allocations: 19.88 kB / 1.071 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002024/0.2474, allocations: 1.693 MB / 1.073 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002748/0.2477, allocations: 0.6924 MB / 1.074 GB, free: 3.578 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.74e-05/0.2477, allocations: 7.984 kB / 1.074 GB, free: 3.57 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.888e-05/0.2478, allocations: 27.42 kB / 1.074 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.2478, allocations: 4 kB / 1.074 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.346/1.593, allocations: 2.497 MB / 1.076 GB, free: 1.176 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.249/9.842, allocations: 17.77 kB / 1.076 GB, free: 1.164 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=400 --tolerance=1e-06 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.mat","/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