Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Controls.Continuous.Examples.NumberOfRequests.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_NumberOfRequests",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.001557/0.001557, allocations: 111.2 kB / 16.4 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 194.7 kB / 17.33 MB, free: 5.844 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.376/1.376, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8266/0.8266, allocations: 126.7 MB / 417.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 63.34 kB / 0.5735 GB, free: 27.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1333, allocations: 78.87 MB / 0.6505 GB, free: 3.66 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.NumberOfRequests): time 0.002742/0.1361, allocations: 1.462 MB / 0.6519 GB, free: 2.184 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008592/0.137, allocations: 472.7 kB / 0.6524 GB, free: 1.719 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.675e-05/0.1371, allocations: 0 / 0.6524 GB, free: 1.719 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001024/0.1372, allocations: 7.922 kB / 0.6524 GB, free: 1.711 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.855e-05/0.1373, allocations: 11.88 kB / 0.6524 GB, free: 1.699 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002264/0.1375, allocations: 35.89 kB / 0.6524 GB, free: 1.664 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001897/0.1377, allocations: 111.7 kB / 0.6525 GB, free: 1.555 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.1378, allocations: 12.19 kB / 0.6526 GB, free: 1.543 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.138, allocations: 43.84 kB / 0.6526 GB, free: 1.5 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001001/0.1381, allocations: 47.81 kB / 0.6526 GB, free: 1.453 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.167e-05/0.1381, allocations: 11.98 kB / 0.6527 GB, free: 1.441 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.224e-05/0.1382, allocations: 12 kB / 0.6527 GB, free: 1.43 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.817e-05/0.1382, allocations: 8 kB / 0.6527 GB, free: 1.422 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.81e-05/0.1383, allocations: 43.78 kB / 0.6527 GB, free: 1.379 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001699/0.1385, allocations: 79.98 kB / 0.6528 GB, free: 1.301 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1385, allocations: 0 / 0.6528 GB, free: 1.301 MB / 494.1 MB Notification: Performance of FrontEnd: time 5.27e-06/0.1385, allocations: 3.984 kB / 0.6528 GB, free: 1.297 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.1385, allocations: 0 / 0.6528 GB, free: 1.297 MB / 494.1 MB 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.0008244/0.1394, allocations: 450.5 kB / 0.6532 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.1394, allocations: 12.03 kB / 0.6532 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.62e-05/0.1395, allocations: 38.75 kB / 0.6533 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.59e-05/0.1395, allocations: 12.89 kB / 0.6533 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002409/0.1398, allocations: 194.1 kB / 0.6535 GB, free: 0.5 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.1398, allocations: 8.375 kB / 0.6535 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.392e-05/0.1398, allocations: 8.375 kB / 0.6535 GB, free: 496 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003357/0.1402, allocations: 113.5 kB / 0.6536 GB, free: 376 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1402, allocations: 0 / 0.6536 GB, free: 376 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.1402, allocations: 11.94 kB / 0.6536 GB, free: 364 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.1402, allocations: 4 kB / 0.6536 GB, free: 360 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003213/0.1405, allocations: 87.92 kB / 0.6537 GB, free: 272 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005984/0.1411, allocations: 336.6 kB / 0.654 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003377/0.1415, allocations: 110.5 kB / 0.6541 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002037/0.1417, allocations: 68.94 kB / 0.6542 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.424e-05/0.1417, allocations: 0 / 0.6542 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003802/0.1421, allocations: 127.2 kB / 0.6543 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=6): time 3.637e-06/0.1421, allocations: 4 kB / 0.6543 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0007803/0.1429, allocations: 279.2 kB / 0.6546 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.589e-05/0.143, allocations: 85.09 kB / 0.6547 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.1431, allocations: 128.2 kB / 0.6548 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.749e-05/0.1432, allocations: 29.7 kB / 0.6548 GB, free: 15 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.678e-05/0.1433, allocations: 100 kB / 0.6549 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.159e-05/0.1433, allocations: 19.91 kB / 0.6549 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.216e-05/0.1434, allocations: 33.7 kB / 0.655 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1435, allocations: 322.8 kB / 0.6553 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.1438, allocations: 63.95 kB / 0.6553 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002/0.144, allocations: 67.95 kB / 0.6554 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003837/0.1444, allocations: 185.8 kB / 0.6556 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1444, allocations: 0 / 0.6556 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005634/0.1449, allocations: 260.9 kB / 0.6558 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.933e-05/0.145, allocations: 63.41 kB / 0.6559 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.145, allocations: 96 / 0.6559 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.1451, allocations: 3.938 kB / 0.6559 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.1452, allocations: 15.97 kB / 0.6559 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.1452, allocations: 8 kB / 0.6559 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/0.1454, allocations: 19.98 kB / 0.6559 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.498e-05/0.1454, allocations: 7.938 kB / 0.6559 GB, free: 13.79 MB / 0.4981 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.0001367/0.1456, allocations: 155.5 kB / 0.6561 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.288e-05/0.1456, allocations: 7.953 kB / 0.6561 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.854e-05/0.1456, allocations: 8.375 kB / 0.6561 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.1457, allocations: 7.984 kB / 0.6561 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1457, allocations: 4 kB / 0.6561 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1457, allocations: 0 / 0.6561 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001973/0.1459, allocations: 201.5 kB / 0.6563 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1459, allocations: 0 / 0.6563 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.163e-05/0.146, allocations: 12.23 kB / 0.6563 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.146, allocations: 0 / 0.6563 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.146, allocations: 4 kB / 0.6563 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.146, allocations: 4 kB / 0.6563 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.146, allocations: 3.938 kB / 0.6563 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005354/0.1466, allocations: 246.6 kB / 0.6566 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.714e-05/0.1466, allocations: 89.06 kB / 0.6566 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.083e-05/0.1467, allocations: 4 kB / 0.6566 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.1468, allocations: 23.91 kB / 0.6567 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.147, allocations: 35.95 kB / 0.6567 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.147, allocations: 4 kB / 0.6567 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.455e-05/0.1471, allocations: 110.3 kB / 0.6568 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1471, allocations: 0 / 0.6568 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000219/0.1473, allocations: 24 kB / 0.6568 GB, free: 12.75 MB / 0.4981 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.0008646/0.1482, allocations: 0.7858 MB / 0.6576 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005422/0.1487, allocations: 258.7 kB / 0.6578 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1488, allocations: 0 / 0.6578 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002711/0.149, allocations: 143.3 kB / 0.658 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002211/0.1493, allocations: 15.98 kB / 0.658 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/0.1519, allocations: 1.763 MB / 0.6597 GB, free: 9.633 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003232/0.1522, allocations: 0.6924 MB / 0.6604 GB, free: 8.914 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.338e-05/0.1523, allocations: 11.98 kB / 0.6604 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.23e-05/0.1523, allocations: 19.44 kB / 0.6604 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of SimCode: time 5.92e-07/0.1523, allocations: 0 / 0.6604 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02431/0.1767, allocations: 3.031 MB / 0.6634 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.829/9.006, allocations: 0.5938 kB / 0.6634 GB, free: 5.941 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.NumberOfRequests.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Controls.Continuous.Examples.NumberOfRequests_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Controls_Continuous_Examples_NumberOfRequests.fmu > IBPSA_latest_IBPSA.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)