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.001157/0.001157, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00115/0.00115, allocations: 188.5 kB / 16.25 MB, free: 6.637 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.224/1.224, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.351/2.351, allocations: 461.9 MB / 0.7343 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 62.11 kB / 0.8987 GB, free: 37.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2323, allocations: 157.4 MB / 1.052 GB, free: 8.648 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002458/0.2348, allocations: 1.576 MB / 1.054 GB, free: 7.059 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000636/0.2355, allocations: 466.8 kB / 1.054 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.113e-05/0.2355, allocations: 0 / 1.054 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.895e-05/0.2356, allocations: 3.938 kB / 1.054 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.279e-05/0.2357, allocations: 11.92 kB / 1.054 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001648/0.2359, allocations: 23.97 kB / 1.054 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001298/0.236, allocations: 91.72 kB / 1.055 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.817e-05/0.2361, allocations: 20.16 kB / 1.055 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.2362, allocations: 43.84 kB / 1.055 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.511e-05/0.2363, allocations: 31.84 kB / 1.055 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.136e-05/0.2363, allocations: 12 kB / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.278e-05/0.2363, allocations: 8 kB / 1.055 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.552e-05/0.2364, allocations: 15.86 kB / 1.055 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.532e-05/0.2364, allocations: 43.78 kB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.2365, allocations: 68 kB / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.2366, allocations: 0 / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.322e-06/0.2366, allocations: 0 / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.978e-06/0.2366, allocations: 0 / 1.055 GB, free: 6.23 MB / 0.8106 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.0006254/0.2372, allocations: 450.7 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.2372, allocations: 8.625 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.236e-05/0.2373, allocations: 34.75 kB / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.315e-05/0.2373, allocations: 8.844 kB / 1.055 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001559/0.2375, allocations: 188.2 kB / 1.055 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.23e-05/0.2375, allocations: 8.312 kB / 1.055 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/0.2375, allocations: 8.375 kB / 1.055 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002635/0.2378, allocations: 93.56 kB / 1.056 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.2378, allocations: 0 / 1.056 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.2378, allocations: 7.984 kB / 1.056 GB, free: 5.328 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.2378, allocations: 4 kB / 1.056 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002655/0.2381, allocations: 67.94 kB / 1.056 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005008/0.2386, allocations: 336.6 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002728/0.2389, allocations: 86.52 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001514/0.2391, allocations: 48.94 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.681e-05/0.2391, allocations: 4 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002647/0.2393, allocations: 107.4 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.2394, allocations: 0 / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0005805/0.2399, allocations: 207.2 kB / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.24, allocations: 85.11 kB / 1.056 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.948e-05/0.2401, allocations: 140 kB / 1.057 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.2401, allocations: 29.7 kB / 1.057 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.588e-05/0.2402, allocations: 100 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.126e-05/0.2402, allocations: 15.81 kB / 1.057 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.979e-05/0.2403, allocations: 29.64 kB / 1.057 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.645e-05/0.2404, allocations: 322.8 kB / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/0.2405, allocations: 47.95 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001599/0.2407, allocations: 59.89 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003035/0.241, allocations: 157.9 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.241, allocations: 0 / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000407/0.2414, allocations: 212.9 kB / 1.058 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.684e-05/0.2415, allocations: 59.41 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.2415, allocations: 0 / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.2415, allocations: 8 kB / 1.058 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.2416, allocations: 15.97 kB / 1.058 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.2417, allocations: 4 kB / 1.058 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.2418, allocations: 27.77 kB / 1.058 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.703e-05/0.2418, allocations: 12 kB / 1.058 GB, free: 2.992 MB / 0.8106 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.0001039/0.2419, allocations: 153 kB / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.784e-05/0.2419, allocations: 7.906 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.59e-05/0.242, allocations: 12.72 kB / 1.058 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.242, allocations: 0 / 1.058 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.242, allocations: 4 kB / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.242, allocations: 3.938 kB / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005207/0.2425, allocations: 424.2 kB / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2425, allocations: 0 / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.55e-05/0.2426, allocations: 15.92 kB / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.2426, allocations: 8 kB / 1.058 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.2427, allocations: 7.984 kB / 1.058 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.2427, allocations: 3.938 kB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.2427, allocations: 288 / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003966/0.2431, allocations: 265.1 kB / 1.058 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.51e-05/0.2431, allocations: 85.02 kB / 1.059 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.2432, allocations: 7.938 kB / 1.059 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.2433, allocations: 19.92 kB / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.632e-05/0.2434, allocations: 23.97 kB / 1.059 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.107e-06/0.2434, allocations: 3.938 kB / 1.059 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.343e-05/0.2435, allocations: 103.3 kB / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2435, allocations: 0 / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002373/0.2437, allocations: 16 kB / 1.059 GB, free: 1.734 MB / 0.8106 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.0006682/0.2444, allocations: 0.8092 MB / 1.06 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004116/0.2448, allocations: 222.7 kB / 1.06 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2448, allocations: 4 kB / 1.06 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001922/0.245, allocations: 107.4 kB / 1.06 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.2453, allocations: 22.33 kB / 1.06 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002017/0.2473, allocations: 1.712 MB / 1.062 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002368/0.2476, allocations: 0.6885 MB / 1.062 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.629e-05/0.2477, allocations: 15.98 kB / 1.062 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.113e-05/0.2477, allocations: 27.42 kB / 1.062 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.2477, allocations: 0 / 1.062 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3522/0.6, allocations: 2.317 MB / 1.065 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002252/0.6002, allocations: 237 kB / 1.065 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.624/2.224, allocations: 0 / 1.065 GB, free: 11.55 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 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.mat","/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