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.0009232/0.0009233, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.006967/0.006967, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.393/1.393, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8711/0.8711, allocations: 135.3 MB / 426.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003129/0.0003129, allocations: 8 kB / 0.5077 GB, free: 4.695 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.1498, allocations: 82.32 MB / 0.5881 GB, free: 2.551 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.001433/0.1513, allocations: 1.192 MB / 0.5892 GB, free: 1.348 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006419/0.152, allocations: 455 kB / 0.5897 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.442e-05/0.152, allocations: 0 / 0.5897 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.662e-05/0.1521, allocations: 0 / 0.5897 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.767e-05/0.1522, allocations: 15.86 kB / 0.5897 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001765/0.1523, allocations: 35.95 kB / 0.5897 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001053/0.1525, allocations: 87.77 kB / 0.5898 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.311e-05/0.1525, allocations: 8.188 kB / 0.5898 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.1527, allocations: 43.84 kB / 0.5899 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.107e-05/0.1528, allocations: 35.88 kB / 0.5899 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.068e-05/0.1528, allocations: 4 kB / 0.5899 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.488e-05/0.1528, allocations: 4 kB / 0.5899 GB, free: 0.668 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.862e-05/0.1528, allocations: 15.92 kB / 0.5899 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.278e-05/0.1529, allocations: 69.42 kB / 0.59 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001001/0.153, allocations: 68.09 kB / 0.59 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.153, allocations: 0 / 0.59 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.153, allocations: 0 / 0.59 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.153, allocations: 0 / 0.59 GB, free: 0.5117 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.00058/0.1536, allocations: 450.6 kB / 0.5905 GB, free: 12 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.1537, allocations: 8.031 kB / 0.5905 GB, free: 4 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.248e-05/0.1537, allocations: 42.75 kB / 0.5905 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.356e-05/0.1538, allocations: 8.844 kB / 0.5905 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001498/0.1539, allocations: 188.2 kB / 0.5907 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.1539, allocations: 8.375 kB / 0.5907 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/0.154, allocations: 12.38 kB / 0.5907 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002897/0.1543, allocations: 121.5 kB / 0.5908 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.1543, allocations: 0 / 0.5908 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.1543, allocations: 7.938 kB / 0.5909 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.1543, allocations: 0 / 0.5909 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003059/0.1546, allocations: 107.9 kB / 0.591 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004808/0.1551, allocations: 340.6 kB / 0.5913 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003103/0.1554, allocations: 118.5 kB / 0.5914 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001805/0.1556, allocations: 80.88 kB / 0.5915 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.1557, allocations: 7.938 kB / 0.5915 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002946/0.156, allocations: 127.3 kB / 0.5916 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=6): time 1.333e-06/0.156, allocations: 0 / 0.5916 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0006973/0.1567, allocations: 303.2 kB / 0.5919 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/0.1567, allocations: 81.11 kB / 0.592 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.056e-05/0.1568, allocations: 129.8 kB / 0.5921 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.1568, allocations: 33.64 kB / 0.5921 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.095e-05/0.1569, allocations: 100 kB / 0.5922 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.215e-05/0.1569, allocations: 23.75 kB / 0.5922 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.111e-05/0.157, allocations: 17.72 kB / 0.5923 GB, free: 14 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.794e-05/0.1571, allocations: 318.8 kB / 0.5926 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000191/0.1573, allocations: 71.95 kB / 0.5926 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.1574, allocations: 83.94 kB / 0.5927 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003415/0.1578, allocations: 189.9 kB / 0.5929 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1578, allocations: 4 kB / 0.5929 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004837/0.1583, allocations: 264.9 kB / 0.5931 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.676e-05/0.1584, allocations: 67.39 kB / 0.5932 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.1584, allocations: 11.94 kB / 0.5932 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.625e-06/0.1584, allocations: 0 / 0.5932 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.1585, allocations: 15.98 kB / 0.5932 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.928e-06/0.1585, allocations: 0 / 0.5932 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001586/0.1587, allocations: 35.88 kB / 0.5933 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.1587, allocations: 8.031 kB / 0.5933 GB, free: 12.89 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.0001028/0.1588, allocations: 163.5 kB / 0.5934 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.079e-05/0.1588, allocations: 7.906 kB / 0.5934 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.009e-05/0.1589, allocations: 16.31 kB / 0.5935 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.1589, allocations: 0 / 0.5935 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.1589, allocations: 0 / 0.5935 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.1589, allocations: 0 / 0.5935 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001309/0.159, allocations: 201.6 kB / 0.5936 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.159, allocations: 0 / 0.5936 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.625e-05/0.1591, allocations: 20.23 kB / 0.5937 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.1591, allocations: 0 / 0.5937 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.1592, allocations: 7.984 kB / 0.5937 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1592, allocations: 4 kB / 0.5937 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1592, allocations: 0 / 0.5937 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004712/0.1596, allocations: 262.6 kB / 0.5939 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.67e-05/0.1597, allocations: 88.95 kB / 0.594 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.203e-05/0.1597, allocations: 4 kB / 0.594 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001506/0.1599, allocations: 31.97 kB / 0.594 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.16, allocations: 31.97 kB / 0.5941 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.16, allocations: 7.984 kB / 0.5941 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.136e-05/0.1601, allocations: 103.1 kB / 0.5942 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.1601, allocations: 0 / 0.5942 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002088/0.1603, allocations: 28 kB / 0.5942 GB, free: 11.82 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.0007013/0.161, allocations: 0.7859 MB / 0.595 GB, free: 11 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00048/0.1615, allocations: 282.6 kB / 0.5953 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1615, allocations: 0 / 0.5953 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002431/0.1617, allocations: 147.3 kB / 0.5954 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001957/0.162, allocations: 15.94 kB / 0.5954 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00209/0.1641, allocations: 1.815 MB / 0.5972 GB, free: 8.613 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002117/0.1643, allocations: 0.6926 MB / 0.5979 GB, free: 7.895 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.966e-05/0.1643, allocations: 11.98 kB / 0.5979 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.487e-05/0.1644, allocations: 15.44 kB / 0.5979 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of SimCode: time 3.31e-07/0.1644, allocations: 0 / 0.5979 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8906/1.055, allocations: 2.533 MB / 0.6004 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000214/1.055, allocations: 194.3 kB / 0.6005 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.356/3.411, allocations: 0 / 0.6005 GB, free: 5.246 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)