Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 104.7 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.465/1.465, allocations: 230.6 MB / 252.8 MB, free: 8.934 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.107/3.107, allocations: 0.49 GB / 0.7916 GB, free: 33.51 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 65.81 kB / 1.149 GB, free: 26.33 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.3357, allocations: 176.1 MB / 1.321 GB, free: 3.352 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.003438/0.3391, allocations: 1.549 MB / 1.322 GB, free: 1.793 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001148/0.3403, allocations: 0.5181 MB / 1.323 GB, free: 1.27 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.613e-05/0.3404, allocations: 4 kB / 1.323 GB, free: 1.266 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.3405, allocations: 7.875 kB / 1.323 GB, free: 1.258 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.772e-05/0.3406, allocations: 15.86 kB / 1.323 GB, free: 1.242 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003256/0.3409, allocations: 43.88 kB / 1.323 GB, free: 1.199 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001993/0.3411, allocations: 87.77 kB / 1.323 GB, free: 1.113 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.3412, allocations: 12 kB / 1.323 GB, free: 1.102 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002144/0.3414, allocations: 43.78 kB / 1.323 GB, free: 1.059 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.3416, allocations: 39.83 kB / 1.323 GB, free: 1.02 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.801e-05/0.3416, allocations: 8 kB / 1.323 GB, free: 1.012 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.263e-05/0.3416, allocations: 19.98 kB / 1.323 GB, free: 0.9922 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 5.347e-05/0.3417, allocations: 11.88 kB / 1.323 GB, free: 0.9805 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 8.047e-05/0.3418, allocations: 35.86 kB / 1.323 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000216/0.342, allocations: 83.86 kB / 1.323 GB, free: 0.8633 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.342, allocations: 0 / 1.323 GB, free: 0.8633 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.024e-06/0.342, allocations: 0 / 1.323 GB, free: 0.8633 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.264e-05/0.342, allocations: 0 / 1.323 GB, free: 0.8633 MB / 1.014 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.0009149/0.3429, allocations: 454.5 kB / 1.324 GB, free: 368 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.343, allocations: 11.98 kB / 1.324 GB, free: 356 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.907e-05/0.343, allocations: 34.75 kB / 1.324 GB, free: 312 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002114/0.3432, allocations: 20.88 kB / 1.324 GB, free: 292 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003375/0.3436, allocations: 200.1 kB / 1.324 GB, free: 52 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.3436, allocations: 8.375 kB / 1.324 GB, free: 44 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.453e-05/0.3436, allocations: 4.375 kB / 1.324 GB, free: 40 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003333/0.344, allocations: 93.75 kB / 1.324 GB, free: 15.94 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.344, allocations: 4 kB / 1.324 GB, free: 15.94 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.344, allocations: 4 kB / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.344, allocations: 4 kB / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003139/0.3443, allocations: 71.92 kB / 1.324 GB, free: 15.86 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006208/0.3449, allocations: 336.6 kB / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003122/0.3452, allocations: 82.52 kB / 1.324 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001723/0.3454, allocations: 48.94 kB / 1.325 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.3454, allocations: 4.094 kB / 1.325 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002809/0.3457, allocations: 107.3 kB / 1.325 GB, free: 15.22 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.3457, allocations: 0 / 1.325 GB, free: 15.22 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0006826/0.3464, allocations: 207.2 kB / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.27e-05/0.3465, allocations: 89.09 kB / 1.325 GB, free: 14.9 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.3466, allocations: 131.5 kB / 1.325 GB, free: 14.76 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.3466, allocations: 37.64 kB / 1.325 GB, free: 14.72 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.777e-05/0.3467, allocations: 100 kB / 1.325 GB, free: 14.62 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.068e-05/0.3467, allocations: 15.83 kB / 1.325 GB, free: 14.6 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.273e-05/0.3468, allocations: 29.72 kB / 1.325 GB, free: 14.57 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.347, allocations: 322.8 kB / 1.326 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001894/0.3472, allocations: 47.95 kB / 1.326 GB, free: 14.2 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/0.3474, allocations: 55.91 kB / 1.326 GB, free: 14.14 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003532/0.3477, allocations: 161.9 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.3477, allocations: 0 / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004938/0.3482, allocations: 212.9 kB / 1.326 GB, free: 13.73 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.252e-05/0.3483, allocations: 63.41 kB / 1.326 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.3483, allocations: 4 kB / 1.326 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.3483, allocations: 0 / 1.326 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.3484, allocations: 19.97 kB / 1.326 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.3484, allocations: 0 / 1.326 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001338/0.3486, allocations: 23.81 kB / 1.326 GB, free: 13.61 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.797e-05/0.3486, allocations: 8 kB / 1.326 GB, free: 13.61 MB / 1.029 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.0001304/0.3487, allocations: 151.5 kB / 1.326 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.148e-05/0.3487, allocations: 7.953 kB / 1.326 GB, free: 13.43 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.756e-05/0.3488, allocations: 16.72 kB / 1.326 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3488, allocations: 0 / 1.326 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3488, allocations: 0 / 1.326 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.3488, allocations: 3.938 kB / 1.326 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006247/0.3494, allocations: 424.2 kB / 1.327 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.3494, allocations: 3.984 kB / 1.327 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.532e-05/0.3495, allocations: 23.92 kB / 1.327 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.3495, allocations: 4 kB / 1.327 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.3495, allocations: 4 kB / 1.327 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.3495, allocations: 4.219 kB / 1.327 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3495, allocations: 4 kB / 1.327 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004648/0.35, allocations: 261.5 kB / 1.327 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.335e-05/0.35, allocations: 93 kB / 1.327 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.484e-05/0.3501, allocations: 4 kB / 1.327 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001506/0.3502, allocations: 23.91 kB / 1.327 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.3503, allocations: 19.97 kB / 1.327 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.3503, allocations: 4 kB / 1.327 GB, free: 12.45 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.334e-05/0.3504, allocations: 105.1 kB / 1.327 GB, free: 12.35 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3504, allocations: 0 / 1.327 GB, free: 12.35 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002464/0.3507, allocations: 20 kB / 1.327 GB, free: 12.33 MB / 1.029 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.0007837/0.3514, allocations: 0.8116 MB / 1.328 GB, free: 11.49 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004894/0.3519, allocations: 214.7 kB / 1.328 GB, free: 11.25 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3519, allocations: 0 / 1.328 GB, free: 11.25 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002348/0.3522, allocations: 107.4 kB / 1.328 GB, free: 11.14 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.3525, allocations: 20.67 kB / 1.328 GB, free: 11.12 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002455/0.3549, allocations: 1.734 MB / 1.33 GB, free: 9.289 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003197/0.3552, allocations: 0.6924 MB / 1.331 GB, free: 8.57 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.436e-05/0.3553, allocations: 7.984 kB / 1.331 GB, free: 8.562 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.822e-05/0.3554, allocations: 27.42 kB / 1.331 GB, free: 8.535 MB / 1.029 GB Notification: Performance of SimCode: time 2.91e-07/0.3554, allocations: 0 / 1.331 GB, free: 8.535 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02587/0.3812, allocations: 2.603 MB / 1.333 GB, free: 6.094 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.108/8.49, allocations: 3.859 kB / 1.333 GB, free: 6.09 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 14.968033266020939]