Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.207/1.207, allocations: 251.5 MB / 266.7 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008789/0.0008789, allocations: 177.8 kB / 325.9 MB, free: 2.672 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.249/1.249, allocations: 205 MB / 0.576 GB, free: 20.95 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006143/0.0006144, allocations: 94.02 kB / 0.6797 GB, free: 14.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002747/0.0002748, allocations: 8.656 kB / 0.7932 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1368, allocations: 105.4 MB / 0.8962 GB, free: 68.05 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.001202/0.138, allocations: 1.223 MB / 0.8974 GB, free: 66.82 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005907/0.1386, allocations: 0.5119 MB / 0.8979 GB, free: 66.3 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.431e-05/0.1387, allocations: 0 / 0.8979 GB, free: 66.3 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 7.726e-05/0.1388, allocations: 7.938 kB / 0.8979 GB, free: 66.29 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.001e-05/0.1388, allocations: 7.922 kB / 0.8979 GB, free: 66.28 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001435/0.139, allocations: 35.89 kB / 0.8979 GB, free: 66.25 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.691e-05/0.1391, allocations: 91.77 kB / 0.898 GB, free: 66.16 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 6.967e-05/0.1391, allocations: 12.19 kB / 0.898 GB, free: 66.14 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.882e-05/0.1392, allocations: 39.84 kB / 0.8981 GB, free: 66.11 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.856e-05/0.1393, allocations: 43.81 kB / 0.8981 GB, free: 66.06 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.1393, allocations: 4 kB / 0.8981 GB, free: 66.06 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.421e-05/0.1393, allocations: 4 kB / 0.8981 GB, free: 66.05 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.055e-05/0.1394, allocations: 7.984 kB / 0.8981 GB, free: 66.05 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.498e-05/0.1394, allocations: 35.8 kB / 0.8982 GB, free: 66.01 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.151e-05/0.1395, allocations: 75.73 kB / 0.8982 GB, free: 65.94 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.1395, allocations: 0 / 0.8982 GB, free: 65.94 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.623e-06/0.1395, allocations: 4 kB / 0.8982 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.056e-06/0.1395, allocations: 4 kB / 0.8982 GB, free: 65.93 MB / 0.6042 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.0004554/0.14, allocations: 434.7 kB / 0.8987 GB, free: 65.45 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 2.901e-05/0.14, allocations: 8.031 kB / 0.8987 GB, free: 65.44 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.643e-05/0.1401, allocations: 38.75 kB / 0.8987 GB, free: 65.39 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.962e-05/0.1401, allocations: 4.938 kB / 0.8987 GB, free: 65.39 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.1402, allocations: 200 kB / 0.8989 GB, free: 65.15 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.074e-06/0.1402, allocations: 4.375 kB / 0.8989 GB, free: 65.15 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.749e-05/0.1403, allocations: 12.38 kB / 0.8989 GB, free: 65.14 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002574/0.1405, allocations: 121.5 kB / 0.899 GB, free: 65.01 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.1405, allocations: 0 / 0.899 GB, free: 65.01 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.551e-05/0.1406, allocations: 15.98 kB / 0.899 GB, free: 65 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-06/0.1406, allocations: 0 / 0.899 GB, free: 65 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000254/0.1408, allocations: 103.9 kB / 0.8991 GB, free: 64.89 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000379/0.1412, allocations: 344.7 kB / 0.8995 GB, free: 64.51 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002515/0.1415, allocations: 114.5 kB / 0.8996 GB, free: 64.39 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.1416, allocations: 84.88 kB / 0.8997 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.1416, allocations: 0 / 0.8997 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002437/0.1419, allocations: 131.3 kB / 0.8998 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.372e-06/0.1419, allocations: 0 / 0.8998 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0005568/0.1425, allocations: 303.1 kB / 0.9001 GB, free: 63.85 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.1425, allocations: 85.11 kB / 0.9002 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.664e-05/0.1426, allocations: 129.8 kB / 0.9003 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.316e-05/0.1426, allocations: 29.7 kB / 0.9003 GB, free: 63.58 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.875e-05/0.1426, allocations: 104 kB / 0.9004 GB, free: 63.47 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.486e-05/0.1427, allocations: 19.81 kB / 0.9004 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.374e-05/0.1427, allocations: 13.72 kB / 0.9004 GB, free: 63.43 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 3.392e-05/0.1427, allocations: 326.8 kB / 0.9007 GB, free: 63.11 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001587/0.1429, allocations: 71.95 kB / 0.9008 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001479/0.143, allocations: 75.94 kB / 0.9009 GB, free: 62.96 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002661/0.1433, allocations: 201.8 kB / 0.9011 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1433, allocations: 0 / 0.9011 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003797/0.1437, allocations: 268.9 kB / 0.9013 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.926e-05/0.1437, allocations: 67.39 kB / 0.9014 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.407e-06/0.1438, allocations: 4 kB / 0.9014 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.636e-06/0.1438, allocations: 0 / 0.9014 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.1439, allocations: 19.92 kB / 0.9014 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.1439, allocations: 0 / 0.9014 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.144, allocations: 31.91 kB / 0.9015 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.144, allocations: 12.03 kB / 0.9015 GB, free: 62.32 MB / 0.6042 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 6.627e-05/0.1441, allocations: 163.5 kB / 0.9016 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.54e-05/0.1441, allocations: 7.906 kB / 0.9016 GB, free: 62.13 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.161e-05/0.1442, allocations: 12.38 kB / 0.9016 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.1442, allocations: 0 / 0.9016 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1442, allocations: 0 / 0.9016 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.1442, allocations: 0 / 0.9016 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.506e-05/0.1443, allocations: 197.6 kB / 0.9018 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.1443, allocations: 0 / 0.9018 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.625e-05/0.1444, allocations: 19.98 kB / 0.9019 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.1444, allocations: 0 / 0.9019 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.1444, allocations: 4 kB / 0.9019 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1444, allocations: 4.141 kB / 0.9019 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.1444, allocations: 0 / 0.9019 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003771/0.1448, allocations: 270.8 kB / 0.9021 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.839e-05/0.1448, allocations: 85.02 kB / 0.9022 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.1448, allocations: 8 kB / 0.9022 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.145, allocations: 27.97 kB / 0.9022 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.961e-05/0.1451, allocations: 31.97 kB / 0.9023 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/0.1451, allocations: 7.984 kB / 0.9023 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.379e-05/0.1451, allocations: 104.9 kB / 0.9024 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.1451, allocations: 3.938 kB / 0.9024 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001729/0.1453, allocations: 24 kB / 0.9024 GB, free: 61.26 MB / 0.6042 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.0005067/0.1458, allocations: 0.7975 MB / 0.9032 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003667/0.1462, allocations: 278.7 kB / 0.9034 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1462, allocations: 4 kB / 0.9034 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001892/0.1464, allocations: 151.3 kB / 0.9036 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001715/0.1466, allocations: 18.52 kB / 0.9036 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.1482, allocations: 1.789 MB / 0.9054 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.78e-05/0.1483, allocations: 0.6887 MB / 0.906 GB, free: 57.36 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.387e-05/0.1483, allocations: 15.94 kB / 0.906 GB, free: 57.34 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.909e-05/0.1484, allocations: 19.42 kB / 0.9061 GB, free: 57.32 MB / 0.6042 GB Notification: Performance of SimCode: time 2.5e-07/0.1484, allocations: 0 / 0.9061 GB, free: 57.32 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1258/0.2742, allocations: 2.532 MB / 0.9085 GB, free: 54.95 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001402/0.2743, allocations: 218.3 kB / 0.9087 GB, free: 54.69 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.636/1.91, allocations: 5.938 kB / 0.9087 GB, free: 54.69 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)