Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="IDEAS_dev_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.001778/0.001778, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002454/0.002454, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.464/1.464, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.007/1.007, allocations: 135.1 MB / 425.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 55.75 kB / 0.5054 GB, free: 5.266 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1692/0.1706, allocations: 80.93 MB / 0.5845 GB, free: 4.496 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.002512/0.1732, allocations: 1.464 MB / 0.5859 GB, free: 3.016 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006672/0.1739, allocations: 460.5 kB / 0.5863 GB, free: 2.562 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.745e-05/0.1739, allocations: 0 / 0.5863 GB, free: 2.562 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.894e-05/0.174, allocations: 7.922 kB / 0.5863 GB, free: 2.555 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.355e-05/0.1741, allocations: 11.88 kB / 0.5864 GB, free: 2.543 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001963/0.1743, allocations: 39.88 kB / 0.5864 GB, free: 2.504 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001528/0.1745, allocations: 103.8 kB / 0.5865 GB, free: 2.402 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.1746, allocations: 12.17 kB / 0.5865 GB, free: 2.391 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001156/0.1747, allocations: 47.83 kB / 0.5866 GB, free: 2.344 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.13e-05/0.1748, allocations: 39.89 kB / 0.5866 GB, free: 2.305 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.815e-05/0.1748, allocations: 11.94 kB / 0.5866 GB, free: 2.293 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.009e-05/0.1749, allocations: 12 kB / 0.5866 GB, free: 2.281 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.234e-05/0.1749, allocations: 11.98 kB / 0.5866 GB, free: 2.27 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.512e-05/0.175, allocations: 39.8 kB / 0.5867 GB, free: 2.23 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001268/0.1751, allocations: 84.03 kB / 0.5867 GB, free: 2.148 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.1751, allocations: 3.938 kB / 0.5867 GB, free: 2.145 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1751, allocations: 3.938 kB / 0.5868 GB, free: 2.141 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.1751, allocations: 0 / 0.5868 GB, free: 2.141 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.0006785/0.1758, allocations: 446.5 kB / 0.5872 GB, free: 1.645 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.1759, allocations: 16.03 kB / 0.5872 GB, free: 1.629 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.105e-05/0.1759, allocations: 38.75 kB / 0.5872 GB, free: 1.582 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.457e-05/0.176, allocations: 12.83 kB / 0.5872 GB, free: 1.57 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001634/0.1761, allocations: 184.2 kB / 0.5874 GB, free: 1.352 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.432e-05/0.1761, allocations: 4.375 kB / 0.5874 GB, free: 1.348 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.909e-05/0.1762, allocations: 8.375 kB / 0.5874 GB, free: 1.34 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002944/0.1765, allocations: 121.5 kB / 0.5875 GB, free: 1.215 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.1765, allocations: 0 / 0.5875 GB, free: 1.215 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.1765, allocations: 4 kB / 0.5876 GB, free: 1.211 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.1765, allocations: 8 kB / 0.5876 GB, free: 1.203 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002935/0.1768, allocations: 87.86 kB / 0.5876 GB, free: 1.117 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005181/0.1773, allocations: 324.8 kB / 0.588 GB, free: 0.75 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003098/0.1777, allocations: 106.5 kB / 0.5881 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.1779, allocations: 68.94 kB / 0.5881 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/0.1779, allocations: 4 kB / 0.5881 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003132/0.1782, allocations: 139.2 kB / 0.5883 GB, free: 424 kB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.483e-06/0.1782, allocations: 0 / 0.5883 GB, free: 424 kB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006779/0.1789, allocations: 263.3 kB / 0.5885 GB, free: 148 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/0.179, allocations: 89.09 kB / 0.5886 GB, free: 40 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.1791, allocations: 129.8 kB / 0.5887 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.1791, allocations: 29.7 kB / 0.5887 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.009e-05/0.1792, allocations: 100.1 kB / 0.5888 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.336e-05/0.1792, allocations: 19.75 kB / 0.5889 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.89e-05/0.1793, allocations: 29.7 kB / 0.5889 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.659e-05/0.1794, allocations: 326.7 kB / 0.5892 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001874/0.1796, allocations: 67.95 kB / 0.5893 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001786/0.1797, allocations: 63.89 kB / 0.5893 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003392/0.1801, allocations: 189.9 kB / 0.5895 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1801, allocations: 4 kB / 0.5895 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004825/0.1806, allocations: 260.9 kB / 0.5898 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.049e-05/0.1807, allocations: 63.41 kB / 0.5898 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1807, allocations: 0 / 0.5898 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.1807, allocations: 0 / 0.5898 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.1808, allocations: 23.97 kB / 0.5898 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.1808, allocations: 0 / 0.5898 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.181, allocations: 15.98 kB / 0.5899 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.203e-05/0.181, allocations: 11.94 kB / 0.5899 GB, free: 14.64 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.0001135/0.1811, allocations: 151.5 kB / 0.59 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.994e-05/0.1811, allocations: 7.906 kB / 0.59 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.282e-05/0.1812, allocations: 12.36 kB / 0.59 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.1812, allocations: 8 kB / 0.59 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.1812, allocations: 0 / 0.59 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.1812, allocations: 0 / 0.59 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001425/0.1814, allocations: 201.5 kB / 0.5902 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1814, allocations: 0 / 0.5902 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.71e-05/0.1815, allocations: 11.98 kB / 0.5902 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.1815, allocations: 0 / 0.5902 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.1815, allocations: 4 kB / 0.5902 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1815, allocations: 0 / 0.5902 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1815, allocations: 0 / 0.5902 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004705/0.182, allocations: 250.9 kB / 0.5905 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.303e-05/0.182, allocations: 92.94 kB / 0.5906 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.976e-05/0.1821, allocations: 8 kB / 0.5906 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.1822, allocations: 19.97 kB / 0.5906 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.1823, allocations: 35.95 kB / 0.5906 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.1824, allocations: 8 kB / 0.5906 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.393e-05/0.1824, allocations: 101.6 kB / 0.5907 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.01e-07/0.1824, allocations: 0 / 0.5907 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002118/0.1826, allocations: 28 kB / 0.5908 GB, free: 13.61 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.00075/0.1834, allocations: 0.7819 MB / 0.5915 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005058/0.1839, allocations: 270.6 kB / 0.5918 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.1839, allocations: 0 / 0.5918 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002395/0.1842, allocations: 139.3 kB / 0.5919 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/0.1844, allocations: 19.98 kB / 0.5919 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002247/0.1867, allocations: 1.75 MB / 0.5936 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002236/0.1869, allocations: 0.6885 MB / 0.5943 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.284e-05/0.187, allocations: 7.984 kB / 0.5943 GB, free: 9.766 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.566e-05/0.187, allocations: 23.44 kB / 0.5944 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of SimCode: time 4.81e-07/0.187, allocations: 0 / 0.5944 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0202/0.2072, allocations: 2.968 MB / 0.5972 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.365/7.572, allocations: 7.578 kB / 0.5973 GB, free: 6.883 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.NumberOfRequests.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Controls_Continuous_Examples_NumberOfRequests.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)