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.007136/0.007136, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001231/0.001231, allocations: 188.6 kB / 16.67 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.301/1.301, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7158/0.7158, allocations: 132.2 MB / 422.7 MB, free: 1.691 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001989/0.001989, allocations: 67.31 kB / 0.5808 GB, free: 1.305 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1593, allocations: 80.21 MB / 0.6592 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.002531/0.1619, allocations: 1.472 MB / 0.6606 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007815/0.1627, allocations: 466.8 kB / 0.661 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.986e-05/0.1628, allocations: 0 / 0.661 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.454e-05/0.1629, allocations: 7.875 kB / 0.661 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.097e-05/0.163, allocations: 15.86 kB / 0.6611 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002259/0.1632, allocations: 35.89 kB / 0.6611 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001704/0.1634, allocations: 103.8 kB / 0.6612 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.552e-05/0.1635, allocations: 16.17 kB / 0.6612 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.1637, allocations: 55.81 kB / 0.6613 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.907e-05/0.1638, allocations: 43.83 kB / 0.6613 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.778e-05/0.1638, allocations: 8 kB / 0.6613 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.684e-05/0.1638, allocations: 8 kB / 0.6613 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.033e-05/0.1639, allocations: 8 kB / 0.6613 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.003e-05/0.1639, allocations: 43.78 kB / 0.6614 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001324/0.1641, allocations: 78.58 kB / 0.6614 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1641, allocations: 0 / 0.6614 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.864e-06/0.1641, allocations: 0 / 0.6614 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.536e-06/0.1641, allocations: 0 / 0.6614 GB, free: 11.78 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.0006733/0.1648, allocations: 451.5 kB / 0.6619 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.1648, allocations: 8.031 kB / 0.6619 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.665e-05/0.1649, allocations: 38.75 kB / 0.6619 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.672e-05/0.1649, allocations: 12.78 kB / 0.6619 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001823/0.1651, allocations: 192.2 kB / 0.6621 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.1651, allocations: 8.375 kB / 0.6621 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.873e-05/0.1651, allocations: 8.375 kB / 0.6621 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003172/0.1655, allocations: 117.5 kB / 0.6622 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.1655, allocations: 4 kB / 0.6622 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.1655, allocations: 4 kB / 0.6623 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1655, allocations: 0 / 0.6623 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002977/0.1658, allocations: 87.92 kB / 0.6623 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005455/0.1664, allocations: 324.6 kB / 0.6626 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000312/0.1667, allocations: 110.5 kB / 0.6628 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001789/0.1669, allocations: 72.94 kB / 0.6628 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.1669, allocations: 0 / 0.6628 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003644/0.1673, allocations: 135.2 kB / 0.6629 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=6): time 2.555e-06/0.1673, allocations: 0 / 0.6629 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0007113/0.168, allocations: 275.2 kB / 0.6632 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.983e-05/0.1681, allocations: 81.11 kB / 0.6633 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.1682, allocations: 128.8 kB / 0.6634 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.1682, allocations: 29.7 kB / 0.6634 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.099e-05/0.1683, allocations: 108 kB / 0.6635 GB, free: 9.398 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.831e-05/0.1683, allocations: 19.88 kB / 0.6636 GB, free: 9.379 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.295e-05/0.1684, allocations: 29.7 kB / 0.6636 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.1685, allocations: 318.8 kB / 0.6639 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.1687, allocations: 75.88 kB / 0.664 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.1689, allocations: 63.89 kB / 0.664 GB, free: 8.887 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003313/0.1692, allocations: 189.9 kB / 0.6642 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1692, allocations: 0 / 0.6642 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004762/0.1697, allocations: 256.8 kB / 0.6645 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.234e-05/0.1698, allocations: 65.44 kB / 0.6645 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.1698, allocations: 0 / 0.6645 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.1698, allocations: 8 kB / 0.6645 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.1699, allocations: 11.98 kB / 0.6645 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.17, allocations: 0 / 0.6645 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000149/0.1701, allocations: 23.97 kB / 0.6646 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.1701, allocations: 7.938 kB / 0.6646 GB, free: 8.285 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.0001145/0.1703, allocations: 159.2 kB / 0.6647 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.037e-05/0.1703, allocations: 7.906 kB / 0.6647 GB, free: 8.109 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.175e-05/0.1703, allocations: 16.38 kB / 0.6647 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.1703, allocations: 256 / 0.6647 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.1703, allocations: 3.984 kB / 0.6647 GB, free: 8.086 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.1704, allocations: 4 kB / 0.6647 GB, free: 8.082 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001435/0.1705, allocations: 197.5 kB / 0.6649 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1705, allocations: 0 / 0.6649 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.238e-05/0.1706, allocations: 11.98 kB / 0.6649 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.1706, allocations: 3.984 kB / 0.665 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.1706, allocations: 4 kB / 0.665 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1706, allocations: 3.938 kB / 0.665 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1706, allocations: 96 / 0.665 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004711/0.1711, allocations: 254.5 kB / 0.6652 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.94e-05/0.1712, allocations: 84.95 kB / 0.6653 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.613e-05/0.1712, allocations: 8 kB / 0.6653 GB, free: 7.434 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000139/0.1713, allocations: 19.97 kB / 0.6653 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.1715, allocations: 39.97 kB / 0.6653 GB, free: 7.375 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.1715, allocations: 7.984 kB / 0.6654 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.733e-05/0.1716, allocations: 103.2 kB / 0.6655 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1716, allocations: 0 / 0.6655 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002057/0.1718, allocations: 20 kB / 0.6655 GB, free: 7.246 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.0007019/0.1725, allocations: 0.7819 MB / 0.6662 GB, free: 6.43 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004681/0.173, allocations: 258.7 kB / 0.6665 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.173, allocations: 0 / 0.6665 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002477/0.1732, allocations: 147.3 kB / 0.6666 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002064/0.1734, allocations: 16 kB / 0.6666 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/0.1756, allocations: 1.744 MB / 0.6683 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002109/0.1758, allocations: 0.6924 MB / 0.669 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.174e-05/0.1759, allocations: 7.984 kB / 0.669 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.258e-05/0.1759, allocations: 23.42 kB / 0.669 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of SimCode: time 2.61e-07/0.1759, allocations: 0 / 0.669 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01939/0.1953, allocations: 3.072 MB / 0.672 GB, free: 464 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.264/7.459, allocations: 4.656 kB / 0.6721 GB, free: 460 kB / 0.4981 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Continuous_Examples_NumberOfRequests.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)