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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.00671/0.00671, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.001835/0.001835, allocations: 193.8 kB / 16.67 MB, free: 5.93 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.464/2.464, allocations: 482.6 MB / 0.7551 GB, free: 6.645 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001699/0.001699, allocations: 72.62 kB / 1.083 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2603, allocations: 162.3 MB / 1.242 GB, free: 8.922 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002358/0.2627, allocations: 1.521 MB / 1.243 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0006736/0.2633, allocations: 452.4 kB / 1.244 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.057e-05/0.2634, allocations: 4 kB / 1.244 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 7.518e-05/0.2635, allocations: 7.875 kB / 1.244 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.842e-05/0.2635, allocations: 7.875 kB / 1.244 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001701/0.2637, allocations: 35.95 kB / 1.244 GB, free: 6.887 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001372/0.2638, allocations: 83.7 kB / 1.244 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.691e-05/0.2639, allocations: 28.16 kB / 1.244 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.264, allocations: 39.84 kB / 1.244 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.437e-05/0.2641, allocations: 35.84 kB / 1.244 GB, free: 6.703 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.293e-05/0.2642, allocations: 8 kB / 1.244 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.415e-05/0.2642, allocations: 4 kB / 1.244 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.251e-05/0.2642, allocations: 19.91 kB / 1.244 GB, free: 6.672 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.283e-05/0.2643, allocations: 31.86 kB / 1.244 GB, free: 6.641 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001285/0.2644, allocations: 83.92 kB / 1.244 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2644, allocations: 0 / 1.244 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2644, allocations: 0 / 1.244 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.2644, allocations: 0 / 1.244 GB, free: 6.559 MB / 0.9669 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.0006271/0.2651, allocations: 446.5 kB / 1.245 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.002e-05/0.2651, allocations: 11.97 kB / 1.245 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.522e-05/0.2652, allocations: 38.75 kB / 1.245 GB, free: 6.004 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.351e-05/0.2652, allocations: 12.88 kB / 1.245 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.2654, allocations: 184.3 kB / 1.245 GB, free: 5.773 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.2654, allocations: 4.375 kB / 1.245 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.388e-05/0.2654, allocations: 4.375 kB / 1.245 GB, free: 5.766 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002634/0.2657, allocations: 101.6 kB / 1.245 GB, free: 5.66 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.138e-06/0.2657, allocations: 4 kB / 1.245 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.899e-06/0.2657, allocations: 0 / 1.245 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.2657, allocations: 0 / 1.245 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002693/0.266, allocations: 75.88 kB / 1.245 GB, free: 5.582 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005077/0.2665, allocations: 340.6 kB / 1.245 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002664/0.2668, allocations: 82.55 kB / 1.245 GB, free: 5.109 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.2669, allocations: 56.94 kB / 1.245 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.171e-05/0.2669, allocations: 0 / 1.245 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00027/0.2672, allocations: 111.3 kB / 1.246 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.293e-06/0.2672, allocations: 0 / 1.246 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0005765/0.2678, allocations: 211.2 kB / 1.246 GB, free: 4.711 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.479e-05/0.2679, allocations: 81.11 kB / 1.246 GB, free: 4.613 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.268, allocations: 136.6 kB / 1.246 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.268, allocations: 29.7 kB / 1.246 GB, free: 4.434 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.516e-05/0.2681, allocations: 96.12 kB / 1.246 GB, free: 4.336 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.29e-05/0.2681, allocations: 19.8 kB / 1.246 GB, free: 4.316 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.413e-05/0.2682, allocations: 29.7 kB / 1.246 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.2683, allocations: 326.8 kB / 1.246 GB, free: 3.953 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.2685, allocations: 43.95 kB / 1.246 GB, free: 3.91 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.2686, allocations: 51.95 kB / 1.247 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003181/0.2689, allocations: 177.9 kB / 1.247 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.269, allocations: 0 / 1.247 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004113/0.2694, allocations: 209 kB / 1.247 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.6e-05/0.2694, allocations: 63.41 kB / 1.247 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.2694, allocations: 3.984 kB / 1.247 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.698e-06/0.2694, allocations: 0 / 1.247 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.2696, allocations: 19.92 kB / 1.247 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.2696, allocations: 0 / 1.247 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001268/0.2697, allocations: 19.92 kB / 1.247 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.27e-05/0.2697, allocations: 4 kB / 1.247 GB, free: 3.32 MB / 0.9669 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.0001108/0.2698, allocations: 152.1 kB / 1.247 GB, free: 3.156 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.985e-05/0.2699, allocations: 11.94 kB / 1.247 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.55e-05/0.2699, allocations: 12.72 kB / 1.247 GB, free: 3.133 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.2699, allocations: 0 / 1.247 GB, free: 3.133 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.2699, allocations: 0 / 1.247 GB, free: 3.133 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2699, allocations: 3.938 kB / 1.247 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005512/0.2705, allocations: 436.1 kB / 1.248 GB, free: 2.641 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2705, allocations: 0 / 1.248 GB, free: 2.641 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.018e-05/0.2706, allocations: 11.98 kB / 1.248 GB, free: 2.629 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.183e-06/0.2706, allocations: 3.984 kB / 1.248 GB, free: 2.625 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.2706, allocations: 4 kB / 1.248 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.2706, allocations: 3.938 kB / 1.248 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.2706, allocations: 0 / 1.248 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004209/0.271, allocations: 273.1 kB / 1.248 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.52e-05/0.2711, allocations: 85 kB / 1.248 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.331e-05/0.2711, allocations: 8 kB / 1.248 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.2713, allocations: 15.92 kB / 1.248 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.415e-05/0.2714, allocations: 27.91 kB / 1.248 GB, free: 2.176 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.2714, allocations: 4 kB / 1.248 GB, free: 2.172 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.771e-05/0.2714, allocations: 103.3 kB / 1.248 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2715, allocations: 0 / 1.248 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002187/0.2717, allocations: 20.08 kB / 1.248 GB, free: 2.051 MB / 0.9669 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.0007068/0.2724, allocations: 0.8038 MB / 1.249 GB, free: 1.215 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004234/0.2728, allocations: 226.6 kB / 1.249 GB, free: 0.9688 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.2728, allocations: 0 / 1.249 GB, free: 0.9688 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002058/0.273, allocations: 111.9 kB / 1.249 GB, free: 0.8477 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002408/0.2733, allocations: 19.81 kB / 1.249 GB, free: 0.8281 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002078/0.2754, allocations: 1.716 MB / 1.251 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.2757, allocations: 0.6924 MB / 1.252 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.951e-05/0.2757, allocations: 11.98 kB / 1.252 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.041e-05/0.2758, allocations: 23.42 kB / 1.252 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.2758, allocations: 0 / 1.252 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5078/0.7835, allocations: 2.542 MB / 1.254 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.884/8.667, allocations: 5.359 kB / 1.254 GB, free: 11.88 MB / 0.9825 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=400 --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