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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009621/0.0009623, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.005391/0.005391, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.268/1.268, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.549/2.549, allocations: 462.6 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002998/0.0002998, allocations: 12.31 kB / 0.9029 GB, free: 36.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.238/0.2383, allocations: 159.6 MB / 1.059 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001539/0.2399, allocations: 1.244 MB / 1.06 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007111/0.2406, allocations: 458.9 kB / 1.06 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.871e-05/0.2407, allocations: 0 / 1.06 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 7.556e-05/0.2407, allocations: 7.938 kB / 1.06 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.998e-05/0.2408, allocations: 3.938 kB / 1.06 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001718/0.241, allocations: 23.97 kB / 1.06 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001075/0.2411, allocations: 87.69 kB / 1.061 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.268e-05/0.2412, allocations: 16.19 kB / 1.061 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.2413, allocations: 35.84 kB / 1.061 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.413e-05/0.2414, allocations: 31.84 kB / 1.061 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.587e-05/0.2414, allocations: 4 kB / 1.061 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.42e-05/0.2415, allocations: 4 kB / 1.061 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.924e-05/0.2415, allocations: 15.91 kB / 1.061 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.13e-05/0.2416, allocations: 65.44 kB / 1.061 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001055/0.2417, allocations: 63.98 kB / 1.061 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2417, allocations: 0 / 1.061 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.603e-06/0.2417, allocations: 0 / 1.061 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.2417, allocations: 0 / 1.061 GB, free: 2.816 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.0005905/0.2423, allocations: 438.7 kB / 1.061 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/0.2423, allocations: 12.03 kB / 1.061 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.817e-05/0.2424, allocations: 38.75 kB / 1.061 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.615e-05/0.2424, allocations: 8.844 kB / 1.061 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/0.2426, allocations: 184.2 kB / 1.061 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.2426, allocations: 12.31 kB / 1.061 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.039e-05/0.2426, allocations: 4.375 kB / 1.061 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002916/0.2429, allocations: 101.6 kB / 1.062 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.751e-06/0.243, allocations: 4 kB / 1.062 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.243, allocations: 8 kB / 1.062 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.243, allocations: 4 kB / 1.062 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003005/0.2433, allocations: 83.94 kB / 1.062 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005347/0.2438, allocations: 340.6 kB / 1.062 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003033/0.2442, allocations: 98.52 kB / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.2443, allocations: 60.95 kB / 1.062 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.192e-05/0.2444, allocations: 0 / 1.062 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002884/0.2447, allocations: 119.3 kB / 1.062 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.2447, allocations: 0 / 1.062 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0006277/0.2453, allocations: 231.2 kB / 1.062 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.539e-05/0.2454, allocations: 85.11 kB / 1.063 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.2455, allocations: 136.6 kB / 1.063 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.2455, allocations: 29.64 kB / 1.063 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.204e-05/0.2456, allocations: 96.05 kB / 1.063 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.245e-05/0.2456, allocations: 23.73 kB / 1.063 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-05/0.2456, allocations: 17.72 kB / 1.063 GB, free: 492 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.109e-05/0.2457, allocations: 322.8 kB / 1.063 GB, free: 160 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001832/0.2459, allocations: 59.95 kB / 1.063 GB, free: 100 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001653/0.2461, allocations: 55.91 kB / 1.063 GB, free: 44 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003573/0.2465, allocations: 193.9 kB / 1.063 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2465, allocations: 0 / 1.063 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004515/0.2469, allocations: 228.9 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.222e-05/0.247, allocations: 61.28 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.247, allocations: 0 / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.247, allocations: 4 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.2471, allocations: 15.98 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.2472, allocations: 0 / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.2473, allocations: 35.84 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.666e-05/0.2473, allocations: 4 kB / 1.064 GB, free: 15.46 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.0001056/0.2474, allocations: 151.5 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.99e-05/0.2475, allocations: 11.89 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.847e-05/0.2475, allocations: 12.7 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.2475, allocations: 0 / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.2475, allocations: 0 / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.2475, allocations: 11.94 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005634/0.2481, allocations: 432.2 kB / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.2481, allocations: 4 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.765e-05/0.2482, allocations: 23.92 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2482, allocations: 0 / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.2482, allocations: 0 / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.2483, allocations: 3.938 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.2483, allocations: 4 kB / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004433/0.2487, allocations: 285.3 kB / 1.065 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.634e-05/0.2488, allocations: 81.02 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.2488, allocations: 7.984 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/0.249, allocations: 27.86 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.955e-05/0.249, allocations: 23.97 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.2491, allocations: 4 kB / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.8e-05/0.2491, allocations: 103.2 kB / 1.065 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2491, allocations: 0 / 1.065 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002477/0.2494, allocations: 20 kB / 1.065 GB, free: 14.16 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.000703/0.2501, allocations: 0.8199 MB / 1.066 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004483/0.2506, allocations: 242.7 kB / 1.066 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2506, allocations: 0 / 1.066 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002192/0.2508, allocations: 119.4 kB / 1.066 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.2511, allocations: 15.92 kB / 1.066 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002141/0.2532, allocations: 1.764 MB / 1.068 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.2535, allocations: 0.6887 MB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.812e-05/0.2535, allocations: 19.92 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.496e-05/0.2536, allocations: 27.42 kB / 1.069 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.2536, allocations: 0 / 1.069 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.255/2.509, allocations: 2.156 MB / 1.071 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002945/2.509, allocations: 240.5 kB / 1.071 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.62/4.129, allocations: 3.938 kB / 1.071 GB, free: 8.051 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