Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.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.001709/0.001709, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.002224/0.002224, allocations: 218.7 kB / 22.26 MB, free: 5.121 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.555/1.555, allocations: 230.6 MB / 256 MB, free: 7.957 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.159/3.159, allocations: 0.49 GB / 0.7951 GB, free: 33.61 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.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_12_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_12_Buildings_Controls_Continuous_Examples_NumberOfRequests",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.001901/0.001901, allocations: 69.36 kB / 1.154 GB, free: 25.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3681/0.37, allocations: 176.1 MB / 1.326 GB, free: 1.922 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.003405/0.3734, allocations: 1.519 MB / 1.327 GB, free: 408 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001125/0.3745, allocations: 0.5299 MB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.281e-05/0.3746, allocations: 7.938 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001043/0.3747, allocations: 7.938 kB / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.426e-05/0.3748, allocations: 11.88 kB / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003071/0.3751, allocations: 47.88 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002115/0.3753, allocations: 107.7 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.3754, allocations: 8.188 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002101/0.3756, allocations: 55.78 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001179/0.3757, allocations: 43.83 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.644e-05/0.3757, allocations: 8 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 5.542e-05/0.3758, allocations: 15.98 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.327e-05/0.3758, allocations: 11.98 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.378e-05/0.3759, allocations: 43.8 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000211/0.3761, allocations: 91.91 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3761, allocations: 0 / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3761, allocations: 0 / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.3761, allocations: 0 / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0009138/0.377, allocations: 381.4 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.3771, allocations: 8.031 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.759e-05/0.3771, allocations: 42.75 kB / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.3773, allocations: 20.88 kB / 1.329 GB, free: 14.92 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.3776, allocations: 126.4 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.3776, allocations: 16.3 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.182e-05/0.3776, allocations: 12.36 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003177/0.3779, allocations: 109.6 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.378, allocations: 0 / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.378, allocations: 7.938 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.378, allocations: 8 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002976/0.3783, allocations: 83.92 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005991/0.3789, allocations: 311.7 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000317/0.3792, allocations: 106.4 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001805/0.3794, allocations: 68.94 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/0.3794, allocations: 0 / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003138/0.3797, allocations: 119.3 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.452e-06/0.3797, allocations: 4 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0007557/0.3805, allocations: 279.3 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.987e-05/0.3805, allocations: 85.11 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.3807, allocations: 130.1 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.3807, allocations: 29.7 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.079e-05/0.3807, allocations: 100.1 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.319e-05/0.3808, allocations: 19.84 kB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.478e-05/0.3808, allocations: 33.7 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.381, allocations: 326.8 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001933/0.3812, allocations: 59.95 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.3813, allocations: 67.95 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004427/0.3818, allocations: 185.8 kB / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3818, allocations: 0 / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005105/0.3823, allocations: 257 kB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.143e-05/0.3824, allocations: 68.95 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.3824, allocations: 160 / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.3824, allocations: 4 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/0.3825, allocations: 15.98 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.3825, allocations: 8.016 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001459/0.3827, allocations: 27.91 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.017e-05/0.3827, allocations: 11.94 kB / 1.331 GB, free: 12.07 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,numReq.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * 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.0001293/0.3828, allocations: 144.1 kB / 1.331 GB, free: 11.92 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.37e-05/0.3828, allocations: 11.95 kB / 1.331 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.82e-05/0.3829, allocations: 16.7 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.3829, allocations: 0 / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3829, allocations: 4 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.3829, allocations: 4 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001566/0.383, allocations: 168.6 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.383, allocations: 7.938 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.171e-05/0.3831, allocations: 11.98 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3831, allocations: 0 / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.3831, allocations: 0 / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.3831, allocations: 0 / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3831, allocations: 4 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005023/0.3836, allocations: 254.5 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.184e-05/0.3837, allocations: 15.89 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.7e-05/0.3837, allocations: 4 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.3838, allocations: 19.97 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.3839, allocations: 32.09 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.89e-05/0.3839, allocations: 15.98 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.532e-05/0.384, allocations: 104.6 kB / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.384, allocations: 0 / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002145/0.3842, allocations: 24 kB / 1.332 GB, free: 11.16 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,numReq.y,pulse.T_start,pulse.count) * Number of discrete states: 2 (pulse.count,numReq.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 3 * 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.0008312/0.3851, allocations: 0.7819 MB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005055/0.3856, allocations: 254.7 kB / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3856, allocations: 0 / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002551/0.3858, allocations: 127.4 kB / 1.333 GB, free: 9.934 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002266/0.3861, allocations: 31.84 kB / 1.333 GB, free: 9.902 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.3886, allocations: 1.756 MB / 1.335 GB, free: 8.055 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003884/0.3889, allocations: 0.6924 MB / 1.336 GB, free: 7.336 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.727e-05/0.389, allocations: 11.98 kB / 1.336 GB, free: 7.324 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.807e-05/0.3891, allocations: 27.36 kB / 1.336 GB, free: 7.297 MB / 1.029 GB Notification: Performance of SimCode: time 4.81e-07/0.3891, allocations: 0 / 1.336 GB, free: 7.297 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0294/0.4185, allocations: 3.239 MB / 1.339 GB, free: 4.199 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.82, allocations: 8.266 kB / 1.339 GB, free: 4.195 MB / 1.029 GB " [Timeout remaining time 287] (rm -f Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.Continuous.Examples.NumberOfRequests.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: 20.83387331198901]