Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_10_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.001211/0.001211, allocations: 108 kB / 15.61 MB, free: 152 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.001127/0.001127, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.283/1.283, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.465/2.465, allocations: 437 MB / 0.7104 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 59.91 kB / 0.8693 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5901/0.5915, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002621/0.5942, allocations: 1.516 MB / 1.019 GB, free: 0.9453 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007268/0.5949, allocations: 454.9 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.255e-05/0.595, allocations: 4 kB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 8.736e-05/0.5951, allocations: 11.88 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.015e-05/0.5951, allocations: 7.875 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001879/0.5953, allocations: 27.95 kB / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001454/0.5955, allocations: 87.7 kB / 1.019 GB, free: 368 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.5956, allocations: 24.17 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.5957, allocations: 35.86 kB / 1.02 GB, free: 308 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.879e-05/0.5958, allocations: 47.81 kB / 1.02 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.483e-05/0.5958, allocations: 4 kB / 1.02 GB, free: 256 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.924e-05/0.5959, allocations: 8 kB / 1.02 GB, free: 248 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.494e-05/0.5959, allocations: 15.92 kB / 1.02 GB, free: 232 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.811e-05/0.596, allocations: 35.8 kB / 1.02 GB, free: 196 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001217/0.5961, allocations: 62.03 kB / 1.02 GB, free: 136 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.5961, allocations: 8 kB / 1.02 GB, free: 128 kB / 0.7637 GB Notification: Performance of FrontEnd: time 8.51e-07/0.5961, allocations: 0 / 1.02 GB, free: 128 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.5961, allocations: 0 / 1.02 GB, free: 128 kB / 0.7637 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.0006705/0.5968, allocations: 450.5 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.5968, allocations: 12.03 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.482e-05/0.5969, allocations: 34.75 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.479e-05/0.5969, allocations: 8.844 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.5971, allocations: 184.3 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.5971, allocations: 12.31 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/0.5971, allocations: 8.312 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002568/0.5974, allocations: 97.56 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.5974, allocations: 3.984 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.5974, allocations: 4 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.5974, allocations: 0 / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002726/0.5977, allocations: 67.94 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005099/0.5982, allocations: 348.5 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002772/0.5985, allocations: 82.52 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001687/0.5987, allocations: 52.95 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.181e-05/0.5987, allocations: 0 / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002674/0.599, allocations: 107.4 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.599, allocations: 0 / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0006185/0.5996, allocations: 207.4 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/0.5997, allocations: 81.11 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.5998, allocations: 132.1 kB / 1.022 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.5998, allocations: 33.7 kB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.052e-05/0.5999, allocations: 92.05 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.5999, allocations: 23.72 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.246e-05/0.6, allocations: 37.59 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.6001, allocations: 326.8 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.6003, allocations: 47.95 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001503/0.6005, allocations: 43.97 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003246/0.6008, allocations: 170 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.6008, allocations: 0 / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004715/0.6013, allocations: 216.9 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.572e-05/0.6013, allocations: 63.41 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.6013, allocations: 80 / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.6014, allocations: 0 / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.6015, allocations: 15.98 kB / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.6015, allocations: 7.969 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001314/0.6016, allocations: 19.83 kB / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.458e-05/0.6017, allocations: 8 kB / 1.023 GB, free: 12.88 MB / 0.7794 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.000116/0.6018, allocations: 151.5 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.304e-05/0.6018, allocations: 15.89 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.882e-05/0.6018, allocations: 8.719 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.6018, allocations: 4 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.6019, allocations: 0 / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.6019, allocations: 3.938 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005468/0.6024, allocations: 428.2 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.6024, allocations: 0 / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.799e-05/0.6025, allocations: 15.98 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.6025, allocations: 3.938 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.6025, allocations: 0 / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.6026, allocations: 7.922 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.6026, allocations: 4 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004366/0.603, allocations: 261.1 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.249e-05/0.6031, allocations: 92.94 kB / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.49e-05/0.6031, allocations: 4 kB / 1.024 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.6032, allocations: 15.92 kB / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.308e-05/0.6033, allocations: 23.97 kB / 1.024 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.6034, allocations: 4 kB / 1.024 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.348e-05/0.6034, allocations: 105 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6034, allocations: 0 / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002345/0.6037, allocations: 16 kB / 1.024 GB, free: 11.62 MB / 0.7794 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.0007556/0.6044, allocations: 0.8095 MB / 1.024 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004413/0.6049, allocations: 234.7 kB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.6049, allocations: 0 / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002115/0.6051, allocations: 107.4 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000269/0.6054, allocations: 17.47 kB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002214/0.6076, allocations: 1.7 MB / 1.026 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.6079, allocations: 0.6885 MB / 1.027 GB, free: 7.887 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.367e-05/0.608, allocations: 11.98 kB / 1.027 GB, free: 7.875 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.6081, allocations: 23.42 kB / 1.027 GB, free: 7.852 MB / 0.7794 GB Notification: Performance of SimCode: time 3.41e-07/0.6081, allocations: 0 / 1.027 GB, free: 7.852 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01913/0.6273, allocations: 2.506 MB / 1.03 GB, free: 5.477 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.963/7.59, allocations: 16.59 kB / 1.03 GB, free: 5.469 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches