Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001065/0.001065, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0011/0.0011, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.901/0.901, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.783/1.783, allocations: 389 MB / 0.633 GB, free: 12.73 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 0.9996 GB, free: 13.58 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.775e-05/1.918e-05, allocations: 2.281 kB / 0.9996 GB, free: 13.58 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.001812/0.001832, allocations: 1.49 MB / 1.001 GB, free: 12.08 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0005951/0.002427, allocations: 0.4916 MB / 1.002 GB, free: 11.58 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.09e-05/0.002478, allocations: 0 / 1.002 GB, free: 11.58 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 9.008e-05/0.002568, allocations: 15.86 kB / 1.002 GB, free: 11.57 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 4.208e-05/0.00261, allocations: 7.875 kB / 1.002 GB, free: 11.56 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002136/0.002823, allocations: 51.86 kB / 1.002 GB, free: 11.51 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.002952, allocations: 103.6 kB / 1.002 GB, free: 11.41 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.513e-05/0.003037, allocations: 16.16 kB / 1.002 GB, free: 11.39 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000145/0.003182, allocations: 63.89 kB / 1.002 GB, free: 11.33 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 5.795e-05/0.00324, allocations: 27.95 kB / 1.002 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.821e-05/0.003258, allocations: 15.94 kB / 1.002 GB, free: 11.29 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 3.601e-05/0.003294, allocations: 15.98 kB / 1.002 GB, free: 11.27 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 3.269e-05/0.003327, allocations: 11.98 kB / 1.002 GB, free: 11.26 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.153e-05/0.003368, allocations: 27.92 kB / 1.002 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001355/0.003504, allocations: 103.7 kB / 1.002 GB, free: 11.13 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.003506, allocations: 0 / 1.002 GB, free: 11.13 MB / 0.9636 GB Notification: Performance of FrontEnd: time 7.21e-07/0.003507, allocations: 0 / 1.002 GB, free: 11.13 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 2.795e-06/0.003509, allocations: 0 / 1.002 GB, free: 11.13 MB / 0.9636 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.0005201/0.004029, allocations: 385.4 kB / 1.002 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.004064, allocations: 12.75 kB / 1.002 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.66e-05/0.00409, allocations: 34.75 kB / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.965e-05/0.00418, allocations: 20.88 kB / 1.002 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.004335, allocations: 136.3 kB / 1.003 GB, free: 10.48 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.004344, allocations: 4.375 kB / 1.003 GB, free: 10.48 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/0.004358, allocations: 12.38 kB / 1.003 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002568/0.004615, allocations: 147.9 kB / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.004622, allocations: 192 / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.004634, allocations: 3.938 kB / 1.003 GB, free: 10.3 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.004639, allocations: 8 kB / 1.003 GB, free: 10.3 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.004815, allocations: 117.6 kB / 1.003 GB, free: 10.18 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003573/0.005172, allocations: 287.8 kB / 1.003 GB, free: 9.852 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001777/0.00535, allocations: 128.2 kB / 1.003 GB, free: 9.711 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.005458, allocations: 106.6 kB / 1.003 GB, free: 9.598 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.021e-05/0.005468, allocations: 0 / 1.003 GB, free: 9.598 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001875/0.005656, allocations: 157 kB / 1.003 GB, free: 9.426 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=6): time 9.22e-07/0.005657, allocations: 0 / 1.003 GB, free: 9.426 MB / 0.9636 GB Notification: Performance of matching and sorting (n=6): time 0.0004178/0.006074, allocations: 338.6 kB / 1.004 GB, free: 9.07 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.006115, allocations: 89.11 kB / 1.004 GB, free: 8.965 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.326e-05/0.006188, allocations: 134.1 kB / 1.004 GB, free: 8.82 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.006202, allocations: 25.7 kB / 1.004 GB, free: 8.789 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.413e-05/0.006246, allocations: 100.1 kB / 1.004 GB, free: 8.688 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.757e-05/0.006264, allocations: 23.91 kB / 1.004 GB, free: 8.664 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.177e-05/0.006306, allocations: 33.64 kB / 1.004 GB, free: 8.625 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.344e-05/0.006379, allocations: 322.8 kB / 1.005 GB, free: 8.301 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.006498, allocations: 123.3 kB / 1.005 GB, free: 8.168 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000114/0.006612, allocations: 131.3 kB / 1.005 GB, free: 8.027 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001748/0.006786, allocations: 177.9 kB / 1.005 GB, free: 7.832 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.006788, allocations: 0 / 1.005 GB, free: 7.832 MB / 0.9636 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002892/0.007077, allocations: 328.3 kB / 1.005 GB, free: 7.48 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 3.406e-05/0.007111, allocations: 63.41 kB / 1.005 GB, free: 7.406 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.007115, allocations: 160 / 1.005 GB, free: 7.406 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.007126, allocations: 4 kB / 1.005 GB, free: 7.402 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.366e-05/0.007189, allocations: 15.97 kB / 1.005 GB, free: 7.387 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.007194, allocations: 3.984 kB / 1.005 GB, free: 7.383 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.972e-05/0.007264, allocations: 19.98 kB / 1.005 GB, free: 7.363 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.007277, allocations: 11.98 kB / 1.005 GB, free: 7.352 MB / 0.9636 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.0001037/0.007381, allocations: 155.4 kB / 1.005 GB, free: 7.184 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.266e-05/0.007394, allocations: 7.953 kB / 1.006 GB, free: 7.176 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.693e-05/0.007451, allocations: 12.77 kB / 1.006 GB, free: 7.16 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.007457, allocations: 8 kB / 1.006 GB, free: 7.152 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.007463, allocations: 0 / 1.006 GB, free: 7.152 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.007467, allocations: 0 / 1.006 GB, free: 7.152 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001629/0.00763, allocations: 156.6 kB / 1.006 GB, free: 6.957 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.007632, allocations: 0 / 1.006 GB, free: 6.957 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.912e-05/0.007711, allocations: 11.98 kB / 1.006 GB, free: 6.945 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.007715, allocations: 3.938 kB / 1.006 GB, free: 6.941 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.007728, allocations: 8.078 kB / 1.006 GB, free: 6.934 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.007731, allocations: 4.188 kB / 1.006 GB, free: 6.93 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.007732, allocations: 3.938 kB / 1.006 GB, free: 6.926 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003521/0.008084, allocations: 280.4 kB / 1.006 GB, free: 6.621 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.576e-05/0.0081, allocations: 11.89 kB / 1.006 GB, free: 6.609 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.788e-05/0.008118, allocations: 4 kB / 1.006 GB, free: 6.605 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.923e-05/0.008187, allocations: 23.97 kB / 1.006 GB, free: 6.582 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.008302, allocations: 31.95 kB / 1.006 GB, free: 6.551 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.139e-05/0.008314, allocations: 4 kB / 1.006 GB, free: 6.547 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 5.038e-05/0.008364, allocations: 101.9 kB / 1.006 GB, free: 6.449 MB / 0.9636 GB Notification: Performance of sort global known variables: time 9.1e-08/0.008364, allocations: 4 kB / 1.006 GB, free: 6.445 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001554/0.008519, allocations: 31.95 kB / 1.006 GB, free: 6.414 MB / 0.9636 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.0004997/0.009019, allocations: 0.807 MB / 1.007 GB, free: 5.562 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0003436/0.009363, allocations: 347.8 kB / 1.007 GB, free: 5.18 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.009365, allocations: 0 / 1.007 GB, free: 5.18 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.000142/0.009507, allocations: 169 kB / 1.007 GB, free: 4.996 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001677/0.009674, allocations: 15.98 kB / 1.007 GB, free: 4.98 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.01124, allocations: 2.036 MB / 1.009 GB, free: 2.789 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.914e-05/0.01129, allocations: 71.33 kB / 1.01 GB, free: 2.699 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 4.344e-05/0.01133, allocations: 11.86 kB / 1.01 GB, free: 2.688 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.859e-05/0.01138, allocations: 24.48 kB / 1.01 GB, free: 2.664 MB / 0.9636 GB Notification: Performance of SimCode: time 6.41e-07/0.01138, allocations: 0 / 1.01 GB, free: 2.664 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01604/0.02742, allocations: 3.891 MB / 1.013 GB, free: 14.92 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.353/6.38, allocations: 6.406 kB / 1.013 GB, free: 14.91 MB / 0.9792 GB " [Timeout remaining time 294] (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 10.501316427253187]