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.006064/0.006064, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001454/0.001454, allocations: 196.9 kB / 16.67 MB, free: 5.973 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7783/0.7783, allocations: 132.2 MB / 422.7 MB, free: 1.699 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 63.19 kB / 0.5808 GB, free: 1.137 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1551, allocations: 80.2 MB / 0.6592 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.002632/0.1578, allocations: 1.481 MB / 0.6606 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008/0.1587, allocations: 462.8 kB / 0.661 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.087e-05/0.1587, allocations: 0 / 0.661 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.591e-05/0.1588, allocations: 3.938 kB / 0.661 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.455e-05/0.1589, allocations: 19.8 kB / 0.6611 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002169/0.1591, allocations: 47.88 kB / 0.6611 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001661/0.1593, allocations: 95.77 kB / 0.6612 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.1594, allocations: 20.16 kB / 0.6612 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001293/0.1595, allocations: 47.84 kB / 0.6613 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.183e-05/0.1596, allocations: 43.81 kB / 0.6613 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.566e-05/0.1597, allocations: 8 kB / 0.6613 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.802e-05/0.1597, allocations: 8 kB / 0.6613 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.455e-05/0.1598, allocations: 11.98 kB / 0.6613 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.631e-05/0.1598, allocations: 39.8 kB / 0.6614 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001479/0.16, allocations: 87.91 kB / 0.6615 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.16, allocations: 4 kB / 0.6615 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.282e-06/0.16, allocations: 0 / 0.6615 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.16, allocations: 0 / 0.6615 GB, free: 11.68 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.0007011/0.1607, allocations: 450.5 kB / 0.6619 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.1608, allocations: 12.03 kB / 0.6619 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.076e-05/0.1608, allocations: 30.75 kB / 0.6619 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.094e-05/0.1609, allocations: 16.88 kB / 0.6619 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/0.161, allocations: 191 kB / 0.6621 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.1611, allocations: 4.375 kB / 0.6621 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.645e-05/0.1611, allocations: 4.375 kB / 0.6621 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003071/0.1614, allocations: 129.5 kB / 0.6623 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.1614, allocations: 0 / 0.6623 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.1614, allocations: 0 / 0.6623 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.1615, allocations: 3.984 kB / 0.6623 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003064/0.1618, allocations: 91.86 kB / 0.6623 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005422/0.1623, allocations: 340.7 kB / 0.6627 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003255/0.1627, allocations: 102.5 kB / 0.6628 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.1628, allocations: 68.94 kB / 0.6628 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.1629, allocations: 0 / 0.6628 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003484/0.1632, allocations: 139.2 kB / 0.663 GB, free: 9.941 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=6): time 1.452e-06/0.1632, allocations: 0 / 0.663 GB, free: 9.941 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0007132/0.164, allocations: 267.2 kB / 0.6632 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.945e-05/0.164, allocations: 89.09 kB / 0.6633 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.1641, allocations: 125.8 kB / 0.6634 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.1642, allocations: 33.7 kB / 0.6635 GB, free: 9.391 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.601e-05/0.1643, allocations: 100 kB / 0.6636 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.389e-05/0.1643, allocations: 19.84 kB / 0.6636 GB, free: 9.27 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.232e-05/0.1644, allocations: 29.7 kB / 0.6636 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001287/0.1645, allocations: 326.8 kB / 0.6639 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.1647, allocations: 59.95 kB / 0.664 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/0.1649, allocations: 76.14 kB / 0.664 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003365/0.1652, allocations: 177.9 kB / 0.6642 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.1652, allocations: 4 kB / 0.6642 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004983/0.1657, allocations: 264.9 kB / 0.6645 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.556e-05/0.1658, allocations: 59.41 kB / 0.6645 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1658, allocations: 4 kB / 0.6645 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.1658, allocations: 3.984 kB / 0.6645 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.166, allocations: 15.98 kB / 0.6646 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.391e-06/0.166, allocations: 4 kB / 0.6646 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001411/0.1661, allocations: 15.98 kB / 0.6646 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.1661, allocations: 11.92 kB / 0.6646 GB, free: 8.172 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.0001254/0.1663, allocations: 151.5 kB / 0.6647 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.042e-05/0.1663, allocations: 11.95 kB / 0.6647 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.294e-05/0.1663, allocations: 12.36 kB / 0.6648 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.1664, allocations: 4 kB / 0.6648 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.1664, allocations: 3.938 kB / 0.6648 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1664, allocations: 0 / 0.6648 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001729/0.1666, allocations: 201.5 kB / 0.6649 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1666, allocations: 0 / 0.6649 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.346e-05/0.1667, allocations: 11.98 kB / 0.665 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.1667, allocations: 0 / 0.665 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.1667, allocations: 4 kB / 0.665 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1667, allocations: 8 kB / 0.665 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1667, allocations: 0 / 0.665 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004836/0.1672, allocations: 242.7 kB / 0.6652 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.765e-05/0.1672, allocations: 92.94 kB / 0.6653 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.683e-05/0.1673, allocations: 4 kB / 0.6653 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001362/0.1674, allocations: 23.97 kB / 0.6653 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.1675, allocations: 35.95 kB / 0.6654 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.1676, allocations: 4 kB / 0.6654 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.123e-05/0.1676, allocations: 106.2 kB / 0.6655 GB, free: 7.164 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1677, allocations: 3.938 kB / 0.6655 GB, free: 7.16 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002068/0.1679, allocations: 28 kB / 0.6655 GB, free: 7.133 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.0007986/0.1687, allocations: 0.7781 MB / 0.6662 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005138/0.1692, allocations: 270.6 kB / 0.6665 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1692, allocations: 0 / 0.6665 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002463/0.1695, allocations: 135.4 kB / 0.6666 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002159/0.1697, allocations: 17.39 kB / 0.6667 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002331/0.172, allocations: 1.748 MB / 0.6684 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/0.1723, allocations: 0.6885 MB / 0.669 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.024e-05/0.1724, allocations: 4 kB / 0.669 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.915e-05/0.1725, allocations: 31.42 kB / 0.6691 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of SimCode: time 6.11e-07/0.1725, allocations: 0 / 0.6691 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02454/0.197, allocations: 2.994 MB / 0.672 GB, free: 424 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.732/7.929, allocations: 7.219 kB / 0.672 GB, free: 420 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)