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.006324/0.006324, allocations: 100.5 kB / 15.73 MB, free: 6.043 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.001473/0.001473, allocations: 186.7 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.279/1.279, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7251/0.7251, allocations: 132.2 MB / 422.7 MB, free: 1.723 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 67.44 kB / 0.5808 GB, free: 1.152 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1453, allocations: 80.21 MB / 0.6592 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.002629/0.148, allocations: 1.461 MB / 0.6606 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000819/0.1488, allocations: 470.8 kB / 0.661 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.222e-05/0.1489, allocations: 4 kB / 0.661 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.154e-05/0.149, allocations: 3.938 kB / 0.661 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.026e-05/0.1491, allocations: 11.86 kB / 0.6611 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002239/0.1493, allocations: 35.89 kB / 0.6611 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000185/0.1495, allocations: 103.8 kB / 0.6612 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.1496, allocations: 20.16 kB / 0.6612 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001405/0.1498, allocations: 47.84 kB / 0.6613 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.061e-05/0.1499, allocations: 43.81 kB / 0.6613 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.756e-05/0.1499, allocations: 8 kB / 0.6613 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.871e-05/0.1499, allocations: 12 kB / 0.6613 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.11e-05/0.15, allocations: 15.98 kB / 0.6613 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.858e-05/0.1501, allocations: 39.8 kB / 0.6614 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001407/0.1502, allocations: 78.56 kB / 0.6614 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.1502, allocations: 0 / 0.6614 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.603e-06/0.1502, allocations: 0 / 0.6614 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.411e-06/0.1502, allocations: 0 / 0.6614 GB, free: 11.69 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.0006904/0.1509, allocations: 447.5 kB / 0.6619 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.151, allocations: 8.031 kB / 0.6619 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.298e-05/0.151, allocations: 46.73 kB / 0.6619 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.211e-05/0.1511, allocations: 12.84 kB / 0.6619 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001938/0.1513, allocations: 186.1 kB / 0.6621 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.036e-05/0.1513, allocations: 4.375 kB / 0.6621 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.928e-05/0.1513, allocations: 16.3 kB / 0.6621 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003386/0.1517, allocations: 113.6 kB / 0.6622 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.1517, allocations: 0 / 0.6622 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.1517, allocations: 4 kB / 0.6622 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1517, allocations: 4 kB / 0.6622 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002803/0.152, allocations: 91.86 kB / 0.6623 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005473/0.1526, allocations: 336.6 kB / 0.6627 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002951/0.1529, allocations: 102.5 kB / 0.6628 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001834/0.1531, allocations: 76.94 kB / 0.6628 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.473e-05/0.1531, allocations: 3.984 kB / 0.6628 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003359/0.1534, allocations: 127.3 kB / 0.6629 GB, free: 9.957 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=6): time 1.753e-06/0.1535, allocations: 3.938 kB / 0.663 GB, free: 9.953 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0006848/0.1542, allocations: 279.2 kB / 0.6632 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.564e-05/0.1542, allocations: 81.11 kB / 0.6633 GB, free: 9.57 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.1543, allocations: 129.8 kB / 0.6634 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.1544, allocations: 25.7 kB / 0.6634 GB, free: 9.402 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.972e-05/0.1544, allocations: 99.98 kB / 0.6635 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.316e-05/0.1545, allocations: 23.8 kB / 0.6636 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.949e-05/0.1545, allocations: 29.72 kB / 0.6636 GB, free: 9.242 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001096/0.1547, allocations: 322.8 kB / 0.6639 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/0.1548, allocations: 67.89 kB / 0.664 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/0.155, allocations: 71.94 kB / 0.664 GB, free: 8.781 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003333/0.1554, allocations: 181.9 kB / 0.6642 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.1554, allocations: 0 / 0.6642 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005018/0.1559, allocations: 260.9 kB / 0.6645 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.649e-05/0.156, allocations: 71.39 kB / 0.6645 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.156, allocations: 0 / 0.6645 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.156, allocations: 0 / 0.6645 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.1561, allocations: 11.98 kB / 0.6645 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.1561, allocations: 4 kB / 0.6645 GB, free: 8.211 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001506/0.1563, allocations: 27.97 kB / 0.6646 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.1563, allocations: 7.938 kB / 0.6646 GB, free: 8.176 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.000131/0.1565, allocations: 147.5 kB / 0.6647 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.45e-05/0.1565, allocations: 15.89 kB / 0.6647 GB, free: 8 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.372e-05/0.1565, allocations: 8.375 kB / 0.6647 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1565, allocations: 0 / 0.6647 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1565, allocations: 0 / 0.6647 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.1565, allocations: 8 kB / 0.6647 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.1567, allocations: 197.5 kB / 0.6649 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.1567, allocations: 0 / 0.6649 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.513e-05/0.1568, allocations: 15.92 kB / 0.6649 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.1568, allocations: 4 kB / 0.665 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.1568, allocations: 0 / 0.665 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1569, allocations: 0 / 0.665 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1569, allocations: 256 / 0.665 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000466/0.1573, allocations: 254.6 kB / 0.6652 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.699e-05/0.1574, allocations: 89 kB / 0.6653 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.834e-05/0.1574, allocations: 7.938 kB / 0.6653 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.1576, allocations: 19.98 kB / 0.6653 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.1577, allocations: 35.95 kB / 0.6653 GB, free: 7.277 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.1577, allocations: 4 kB / 0.6653 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.567e-05/0.1578, allocations: 110.3 kB / 0.6654 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.31e-07/0.1578, allocations: 0 / 0.6654 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002069/0.158, allocations: 20 kB / 0.6655 GB, free: 7.148 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.0007953/0.1588, allocations: 0.7858 MB / 0.6662 GB, free: 6.328 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004608/0.1593, allocations: 262.6 kB / 0.6665 GB, free: 6.047 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1593, allocations: 4 kB / 0.6665 GB, free: 6.043 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000252/0.1596, allocations: 135.4 kB / 0.6666 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002339/0.1598, allocations: 17.7 kB / 0.6666 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002186/0.162, allocations: 1.752 MB / 0.6683 GB, free: 4.035 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002814/0.1623, allocations: 0.6885 MB / 0.669 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.679e-05/0.1624, allocations: 11.98 kB / 0.669 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.785e-05/0.1624, allocations: 19.44 kB / 0.669 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.1624, allocations: 4 kB / 0.6691 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0204/0.1828, allocations: 3.068 MB / 0.672 GB, free: 360 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.385/7.568, allocations: 9.484 kB / 0.6721 GB, free: 356 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)