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.00127/0.00127, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001239/0.001239, allocations: 191.4 kB / 16.25 MB, free: 6.633 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.394/1.394, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9591/0.9591, allocations: 135.1 MB / 425.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 56.84 kB / 0.5049 GB, free: 5.598 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.1646, allocations: 80.94 MB / 0.584 GB, free: 4.828 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.002723/0.1673, allocations: 1.526 MB / 0.5855 GB, free: 3.289 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007433/0.1681, allocations: 447 kB / 0.5859 GB, free: 2.848 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.322e-05/0.1682, allocations: 4 kB / 0.5859 GB, free: 2.844 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.983e-05/0.1683, allocations: 7.875 kB / 0.5859 GB, free: 2.836 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.238e-05/0.1683, allocations: 15.91 kB / 0.5859 GB, free: 2.82 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001936/0.1685, allocations: 35.91 kB / 0.586 GB, free: 2.785 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001469/0.1687, allocations: 99.77 kB / 0.5861 GB, free: 2.688 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.1688, allocations: 12.19 kB / 0.5861 GB, free: 2.676 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.1689, allocations: 51.81 kB / 0.5861 GB, free: 2.625 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.698e-05/0.169, allocations: 43.83 kB / 0.5862 GB, free: 2.582 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.507e-05/0.169, allocations: 8 kB / 0.5862 GB, free: 2.574 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.642e-05/0.1691, allocations: 8 kB / 0.5862 GB, free: 2.566 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.819e-05/0.1691, allocations: 8 kB / 0.5862 GB, free: 2.559 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.648e-05/0.1692, allocations: 47.77 kB / 0.5862 GB, free: 2.512 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001174/0.1693, allocations: 76.06 kB / 0.5863 GB, free: 2.438 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1693, allocations: 4 kB / 0.5863 GB, free: 2.434 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1693, allocations: 0 / 0.5863 GB, free: 2.434 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.1693, allocations: 0 / 0.5863 GB, free: 2.434 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.0006111/0.1699, allocations: 454.5 kB / 0.5867 GB, free: 1.93 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.17, allocations: 8.031 kB / 0.5867 GB, free: 1.922 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.498e-05/0.17, allocations: 38.75 kB / 0.5868 GB, free: 1.875 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.407e-05/0.1701, allocations: 8.844 kB / 0.5868 GB, free: 1.867 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001554/0.1702, allocations: 196.1 kB / 0.587 GB, free: 1.637 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.1703, allocations: 8.375 kB / 0.587 GB, free: 1.629 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.1703, allocations: 8.375 kB / 0.587 GB, free: 1.621 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002878/0.1706, allocations: 121.5 kB / 0.5871 GB, free: 1.496 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.1706, allocations: 0 / 0.5871 GB, free: 1.496 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.1706, allocations: 4 kB / 0.5871 GB, free: 1.492 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.1706, allocations: 0 / 0.5871 GB, free: 1.492 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000269/0.1709, allocations: 87.92 kB / 0.5872 GB, free: 1.406 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004758/0.1714, allocations: 332.7 kB / 0.5875 GB, free: 1.031 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002847/0.1717, allocations: 106.5 kB / 0.5876 GB, free: 0.918 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.1718, allocations: 76.94 kB / 0.5877 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.1719, allocations: 0 / 0.5877 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003056/0.1722, allocations: 123.2 kB / 0.5878 GB, free: 0.707 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.442e-06/0.1722, allocations: 0 / 0.5878 GB, free: 0.707 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006583/0.1729, allocations: 279.2 kB / 0.5881 GB, free: 432 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.778e-05/0.1729, allocations: 85.11 kB / 0.5882 GB, free: 328 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.473e-05/0.173, allocations: 129.7 kB / 0.5883 GB, free: 188 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.173, allocations: 29.7 kB / 0.5883 GB, free: 152 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.003e-05/0.1731, allocations: 96.12 kB / 0.5884 GB, free: 52 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.02e-05/0.1731, allocations: 19.81 kB / 0.5884 GB, free: 32 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.306e-05/0.1732, allocations: 33.78 kB / 0.5885 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.862e-05/0.1733, allocations: 330.7 kB / 0.5888 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.1735, allocations: 63.89 kB / 0.5888 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/0.1736, allocations: 71.94 kB / 0.5889 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003044/0.174, allocations: 181.8 kB / 0.5891 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.174, allocations: 0 / 0.5891 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004511/0.1744, allocations: 260.9 kB / 0.5893 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.565e-05/0.1745, allocations: 63.41 kB / 0.5894 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.1745, allocations: 0 / 0.5894 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.1745, allocations: 4 kB / 0.5894 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.1746, allocations: 15.92 kB / 0.5894 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.1746, allocations: 0 / 0.5894 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001446/0.1748, allocations: 23.97 kB / 0.5894 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.1748, allocations: 7.938 kB / 0.5894 GB, free: 14.93 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.0001089/0.1749, allocations: 155.5 kB / 0.5896 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.003e-05/0.1749, allocations: 7.906 kB / 0.5896 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.131e-05/0.175, allocations: 12.38 kB / 0.5896 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.175, allocations: 3.984 kB / 0.5896 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.175, allocations: 0 / 0.5896 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.175, allocations: 0 / 0.5896 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.1751, allocations: 193.5 kB / 0.5898 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1752, allocations: 0 / 0.5898 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.12e-05/0.1752, allocations: 15.98 kB / 0.5898 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1752, allocations: 0 / 0.5898 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/0.1753, allocations: 11.98 kB / 0.5898 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1753, allocations: 256 / 0.5898 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.1753, allocations: 4.094 kB / 0.5898 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000438/0.1757, allocations: 258.5 kB / 0.5901 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.742e-05/0.1758, allocations: 88.95 kB / 0.5901 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.411e-05/0.1758, allocations: 0 / 0.5901 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.1759, allocations: 23.97 kB / 0.5902 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.1761, allocations: 31.97 kB / 0.5902 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.448e-05/0.1761, allocations: 7.984 kB / 0.5902 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.111e-05/0.1761, allocations: 106 kB / 0.5903 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1761, allocations: 0 / 0.5903 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002062/0.1764, allocations: 24 kB / 0.5903 GB, free: 13.89 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.0006797/0.177, allocations: 0.778 MB / 0.5911 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004522/0.1775, allocations: 274.6 kB / 0.5914 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1775, allocations: 0 / 0.5914 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002272/0.1778, allocations: 139.3 kB / 0.5915 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002037/0.178, allocations: 12 kB / 0.5915 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/0.18, allocations: 1.77 MB / 0.5932 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002078/0.1802, allocations: 0.6923 MB / 0.5939 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.975e-05/0.1803, allocations: 12 kB / 0.5939 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.656e-05/0.1804, allocations: 23.42 kB / 0.5939 GB, free: 10 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1804, allocations: 0 / 0.5939 GB, free: 10 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1122/0.2926, allocations: 2.711 MB / 0.5966 GB, free: 7.453 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002751/0.2929, allocations: 193.1 kB / 0.5968 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.858/2.151, allocations: 0 / 0.5968 GB, free: 7.203 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)