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.001139/0.001143, allocations: 108 kB / 15.6 MB, free: 132 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.001207/0.001207, allocations: 197.7 kB / 16.54 MB, free: 6.672 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.199/1.199, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8756/0.8756, allocations: 135.1 MB / 425.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 68.56 kB / 0.5054 GB, free: 5.234 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1744, allocations: 80.93 MB / 0.5845 GB, free: 4.461 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.003282/0.1777, allocations: 1.456 MB / 0.5859 GB, free: 2.992 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009284/0.1787, allocations: 464.5 kB / 0.5863 GB, free: 2.535 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.756e-05/0.1788, allocations: 4 kB / 0.5863 GB, free: 2.531 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.1789, allocations: 3.938 kB / 0.5863 GB, free: 2.527 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.801e-05/0.179, allocations: 15.86 kB / 0.5864 GB, free: 2.512 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002723/0.1793, allocations: 35.89 kB / 0.5864 GB, free: 2.477 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002144/0.1795, allocations: 95.81 kB / 0.5865 GB, free: 2.383 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.1796, allocations: 24.11 kB / 0.5865 GB, free: 2.359 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00018/0.1798, allocations: 47.84 kB / 0.5866 GB, free: 2.312 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.18, allocations: 31.89 kB / 0.5866 GB, free: 2.281 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.915e-05/0.18, allocations: 11.94 kB / 0.5866 GB, free: 2.27 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.985e-05/0.18, allocations: 8 kB / 0.5866 GB, free: 2.262 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.928e-05/0.1801, allocations: 15.92 kB / 0.5866 GB, free: 2.246 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.075e-05/0.1802, allocations: 47.77 kB / 0.5867 GB, free: 2.199 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001512/0.1803, allocations: 76.12 kB / 0.5867 GB, free: 2.125 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1803, allocations: 0 / 0.5867 GB, free: 2.125 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.497e-06/0.1804, allocations: 0 / 0.5867 GB, free: 2.125 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.1804, allocations: 3.938 kB / 0.5867 GB, free: 2.121 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.0007766/0.1812, allocations: 458.5 kB / 0.5872 GB, free: 1.613 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.1812, allocations: 8.031 kB / 0.5872 GB, free: 1.605 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.207e-05/0.1812, allocations: 38.75 kB / 0.5872 GB, free: 1.559 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.55e-05/0.1813, allocations: 12.84 kB / 0.5872 GB, free: 1.547 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/0.1815, allocations: 192.2 kB / 0.5874 GB, free: 1.32 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.1815, allocations: 8.375 kB / 0.5874 GB, free: 1.312 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.315e-05/0.1816, allocations: 8.375 kB / 0.5874 GB, free: 1.305 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003414/0.1819, allocations: 109.6 kB / 0.5875 GB, free: 1.191 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.1819, allocations: 0 / 0.5875 GB, free: 1.191 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.006e-05/0.182, allocations: 11.98 kB / 0.5875 GB, free: 1.18 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.182, allocations: 0 / 0.5875 GB, free: 1.18 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000323/0.1823, allocations: 95.86 kB / 0.5876 GB, free: 1.086 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005538/0.1829, allocations: 328.8 kB / 0.588 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003316/0.1832, allocations: 106.5 kB / 0.5881 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002349/0.1835, allocations: 72.94 kB / 0.5881 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.447e-05/0.1835, allocations: 0 / 0.5881 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003674/0.1838, allocations: 127.2 kB / 0.5882 GB, free: 400 kB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.723e-06/0.1839, allocations: 0 / 0.5882 GB, free: 400 kB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007577/0.1846, allocations: 275.2 kB / 0.5885 GB, free: 112 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.371e-05/0.1847, allocations: 85.11 kB / 0.5886 GB, free: 8 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.1848, allocations: 133.7 kB / 0.5887 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.1849, allocations: 29.7 kB / 0.5887 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.215e-05/0.1849, allocations: 88.22 kB / 0.5888 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.881e-05/0.185, allocations: 27.72 kB / 0.5889 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.285e-05/0.185, allocations: 25.72 kB / 0.5889 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.1852, allocations: 330.8 kB / 0.5892 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/0.1854, allocations: 67.89 kB / 0.5893 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002063/0.1856, allocations: 67.94 kB / 0.5893 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003788/0.186, allocations: 185.9 kB / 0.5895 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.186, allocations: 0 / 0.5895 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005198/0.1865, allocations: 264.8 kB / 0.5898 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.81e-05/0.1866, allocations: 67.39 kB / 0.5898 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.1866, allocations: 3.938 kB / 0.5898 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.1866, allocations: 0 / 0.5898 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.1868, allocations: 11.98 kB / 0.5898 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.1868, allocations: 0 / 0.5898 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001654/0.187, allocations: 27.97 kB / 0.5899 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.337e-05/0.187, allocations: 11.94 kB / 0.5899 GB, free: 14.61 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.0001316/0.1871, allocations: 147.5 kB / 0.59 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.501e-05/0.1872, allocations: 15.91 kB / 0.59 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.222e-05/0.1872, allocations: 8.375 kB / 0.59 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.1872, allocations: 0 / 0.59 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.1872, allocations: 4 kB / 0.59 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1872, allocations: 0 / 0.59 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001664/0.1874, allocations: 189.5 kB / 0.5902 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1874, allocations: 7.938 kB / 0.5902 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.045e-05/0.1875, allocations: 15.98 kB / 0.5902 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1875, allocations: 0 / 0.5902 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.1875, allocations: 0 / 0.5902 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.1875, allocations: 256 / 0.5902 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/0.1875, allocations: 11.98 kB / 0.5903 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004858/0.188, allocations: 246.6 kB / 0.5905 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.513e-05/0.1881, allocations: 88.95 kB / 0.5906 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.1881, allocations: 8 kB / 0.5906 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001499/0.1883, allocations: 19.97 kB / 0.5906 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/0.1884, allocations: 27.97 kB / 0.5906 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.1885, allocations: 8 kB / 0.5906 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.542e-05/0.1885, allocations: 101.6 kB / 0.5907 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.1886, allocations: 3.938 kB / 0.5907 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002208/0.1888, allocations: 35.98 kB / 0.5908 GB, free: 13.57 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.0008102/0.1896, allocations: 0.7741 MB / 0.5915 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000525/0.1901, allocations: 270.6 kB / 0.5918 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1901, allocations: 0 / 0.5918 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002835/0.1904, allocations: 143.3 kB / 0.5919 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002281/0.1907, allocations: 8 kB / 0.5919 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002526/0.1932, allocations: 1.755 MB / 0.5936 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.1935, allocations: 0.6924 MB / 0.5943 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.496e-05/0.1936, allocations: 7.984 kB / 0.5943 GB, free: 9.734 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.011e-05/0.1936, allocations: 23.42 kB / 0.5943 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1936, allocations: 0 / 0.5943 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03793/0.2316, allocations: 2.96 MB / 0.5972 GB, free: 6.863 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.506/7.737, allocations: 18.17 kB / 0.5973 GB, free: 6.848 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Continuous_Examples_NumberOfRequests.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)