Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="IDEAS_IDEAS_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.007298/0.007298, allocations: 98.11 kB / 15.73 MB, free: 6.055 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.001692/0.001692, allocations: 193.5 kB / 16.68 MB, free: 5.969 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.239/1.239, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7269/0.7269, allocations: 132.2 MB / 422.7 MB, free: 6.512 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 66.55 kB / 0.5808 GB, free: 24.01 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.1427, allocations: 80.22 MB / 0.6592 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.002726/0.1455, allocations: 1.469 MB / 0.6606 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008549/0.1463, allocations: 474.8 kB / 0.661 GB, free: 8.828 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.999e-05/0.1464, allocations: 0 / 0.661 GB, free: 8.828 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001127/0.1466, allocations: 3.938 kB / 0.661 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.315e-05/0.1467, allocations: 11.88 kB / 0.6611 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002328/0.1469, allocations: 43.89 kB / 0.6611 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001752/0.1471, allocations: 103.7 kB / 0.6612 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.1472, allocations: 16.17 kB / 0.6612 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001553/0.1474, allocations: 55.83 kB / 0.6613 GB, free: 8.598 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.67e-05/0.1475, allocations: 39.83 kB / 0.6613 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.749e-05/0.1475, allocations: 8 kB / 0.6613 GB, free: 8.551 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.724e-05/0.1475, allocations: 8 kB / 0.6613 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.38e-05/0.1476, allocations: 7.984 kB / 0.6613 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.128e-05/0.1476, allocations: 43.78 kB / 0.6614 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.1478, allocations: 79.98 kB / 0.6614 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.1478, allocations: 7.938 kB / 0.6615 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.223e-06/0.1478, allocations: 0 / 0.6615 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.1478, allocations: 0 / 0.6615 GB, free: 8.406 MB / 0.4981 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.0007253/0.1486, allocations: 454.5 kB / 0.6619 GB, free: 7.902 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 9.271e-05/0.1487, allocations: 12.03 kB / 0.6619 GB, free: 7.891 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.046e-05/0.1487, allocations: 34.75 kB / 0.6619 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.357e-05/0.1487, allocations: 12.89 kB / 0.6619 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000189/0.1489, allocations: 188.2 kB / 0.6621 GB, free: 7.613 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.149, allocations: 4.375 kB / 0.6621 GB, free: 7.609 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.265e-05/0.149, allocations: 8.375 kB / 0.6621 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003039/0.1493, allocations: 117.5 kB / 0.6622 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.1493, allocations: 7.938 kB / 0.6623 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.1493, allocations: 4 kB / 0.6623 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.1494, allocations: 0 / 0.6623 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002955/0.1497, allocations: 91.86 kB / 0.6623 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00054/0.1502, allocations: 328.7 kB / 0.6627 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003212/0.1505, allocations: 110.5 kB / 0.6628 GB, free: 6.891 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/0.1507, allocations: 68.94 kB / 0.6628 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.1508, allocations: 4 kB / 0.6628 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003462/0.1511, allocations: 127.3 kB / 0.663 GB, free: 6.68 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=6): time 1.643e-06/0.1511, allocations: 3.938 kB / 0.663 GB, free: 6.676 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0006917/0.1518, allocations: 271.2 kB / 0.6632 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.508e-05/0.1519, allocations: 85.11 kB / 0.6633 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.152, allocations: 129.8 kB / 0.6634 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.152, allocations: 33.7 kB / 0.6635 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.774e-05/0.1521, allocations: 104 kB / 0.6636 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.33e-05/0.1521, allocations: 15.91 kB / 0.6636 GB, free: 6 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.784e-05/0.1522, allocations: 29.64 kB / 0.6636 GB, free: 5.965 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.1523, allocations: 322.8 kB / 0.6639 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001872/0.1525, allocations: 67.94 kB / 0.664 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.1527, allocations: 67.95 kB / 0.664 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003373/0.153, allocations: 181.9 kB / 0.6642 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.153, allocations: 0 / 0.6642 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004792/0.1535, allocations: 261 kB / 0.6645 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.299e-05/0.1536, allocations: 63.5 kB / 0.6645 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1536, allocations: 4.016 kB / 0.6645 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.1536, allocations: 4 kB / 0.6645 GB, free: 4.953 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.1537, allocations: 15.98 kB / 0.6645 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.1538, allocations: 3.984 kB / 0.6645 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/0.1539, allocations: 19.97 kB / 0.6646 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/0.1539, allocations: 11.94 kB / 0.6646 GB, free: 4.902 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.0001231/0.1541, allocations: 151.5 kB / 0.6647 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.273e-05/0.1541, allocations: 11.95 kB / 0.6647 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.985e-05/0.1541, allocations: 12.38 kB / 0.6647 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1541, allocations: 4.25 kB / 0.6647 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1542, allocations: 0 / 0.6647 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1542, allocations: 7.938 kB / 0.6648 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001519/0.1543, allocations: 201.5 kB / 0.6649 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.1543, allocations: 0 / 0.6649 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.359e-05/0.1544, allocations: 11.98 kB / 0.665 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1544, allocations: 0 / 0.665 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.749e-05/0.1544, allocations: 7.984 kB / 0.665 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1545, allocations: 0 / 0.665 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1545, allocations: 4 kB / 0.665 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004864/0.1549, allocations: 250.6 kB / 0.6652 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.176e-05/0.155, allocations: 81.06 kB / 0.6653 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.851e-05/0.155, allocations: 11.94 kB / 0.6653 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.1552, allocations: 23.97 kB / 0.6653 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.1553, allocations: 27.97 kB / 0.6653 GB, free: 4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.1553, allocations: 11.98 kB / 0.6654 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.816e-05/0.1554, allocations: 102 kB / 0.6655 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.563e-06/0.1554, allocations: 0 / 0.6655 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002046/0.1556, allocations: 31.94 kB / 0.6655 GB, free: 3.859 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.0007617/0.1564, allocations: 0.7742 MB / 0.6662 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004978/0.1569, allocations: 266.6 kB / 0.6665 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1569, allocations: 0 / 0.6665 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002472/0.1571, allocations: 143.3 kB / 0.6666 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002124/0.1574, allocations: 12 kB / 0.6666 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.1597, allocations: 1.747 MB / 0.6684 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002494/0.1599, allocations: 0.6924 MB / 0.669 GB, free: 36 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.476e-05/0.16, allocations: 11.98 kB / 0.669 GB, free: 24 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.906e-05/0.1601, allocations: 23.42 kB / 0.6691 GB, free: 0 / 0.4981 GB Notification: Performance of SimCode: time 4.31e-07/0.1601, allocations: 0 / 0.6691 GB, free: 0 / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0212/0.1813, allocations: 2.994 MB / 0.672 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.201/7.382, allocations: 8.062 kB / 0.672 GB, free: 13.12 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.NumberOfRequests.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Controls_Continuous_Examples_NumberOfRequests.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)