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.001191/0.001191, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001225/0.001225, allocations: 194.8 kB / 16.14 MB, free: 6.695 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.24/1.24, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8358/0.8358, allocations: 135.1 MB / 425.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 64.33 kB / 0.5048 GB, free: 5.719 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.1441, allocations: 80.93 MB / 0.5838 GB, free: 4.961 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.002762/0.1469, allocations: 1.531 MB / 0.5853 GB, free: 3.414 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007749/0.1477, allocations: 455 kB / 0.5857 GB, free: 2.965 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.02e-05/0.1478, allocations: 3.938 kB / 0.5857 GB, free: 2.961 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.444e-05/0.1479, allocations: 4 kB / 0.5857 GB, free: 2.957 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.311e-05/0.148, allocations: 11.88 kB / 0.5857 GB, free: 2.945 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002024/0.1482, allocations: 31.97 kB / 0.5858 GB, free: 2.914 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001279/0.1483, allocations: 99.67 kB / 0.5859 GB, free: 2.816 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.236e-05/0.1484, allocations: 8.188 kB / 0.5859 GB, free: 2.809 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.1485, allocations: 39.91 kB / 0.5859 GB, free: 2.77 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.856e-05/0.1486, allocations: 43.83 kB / 0.586 GB, free: 2.727 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.634e-05/0.1487, allocations: 4 kB / 0.586 GB, free: 2.723 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.716e-05/0.1487, allocations: 4 kB / 0.586 GB, free: 2.719 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.286e-05/0.1487, allocations: 15.97 kB / 0.586 GB, free: 2.703 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.574e-05/0.1488, allocations: 35.8 kB / 0.586 GB, free: 2.668 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001305/0.1489, allocations: 80.03 kB / 0.5861 GB, free: 2.59 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.149, allocations: 0 / 0.5861 GB, free: 2.59 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.149, allocations: 0 / 0.5861 GB, free: 2.59 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.196e-06/0.149, allocations: 0 / 0.5861 GB, free: 2.59 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.0006595/0.1496, allocations: 450.6 kB / 0.5865 GB, free: 2.09 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.1497, allocations: 12.03 kB / 0.5865 GB, free: 2.078 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.913e-05/0.1497, allocations: 46.67 kB / 0.5866 GB, free: 2.023 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.907e-05/0.1498, allocations: 8.844 kB / 0.5866 GB, free: 2.016 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001789/0.15, allocations: 188.2 kB / 0.5868 GB, free: 1.793 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.15, allocations: 4.375 kB / 0.5868 GB, free: 1.789 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.909e-05/0.15, allocations: 8.359 kB / 0.5868 GB, free: 1.781 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003263/0.1503, allocations: 121.5 kB / 0.5869 GB, free: 1.656 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.1504, allocations: 4 kB / 0.5869 GB, free: 1.652 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.1504, allocations: 0 / 0.5869 GB, free: 1.652 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.1504, allocations: 4 kB / 0.5869 GB, free: 1.648 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002887/0.1507, allocations: 87.86 kB / 0.587 GB, free: 1.562 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005392/0.1512, allocations: 336.7 kB / 0.5873 GB, free: 1.184 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002985/0.1515, allocations: 106.5 kB / 0.5874 GB, free: 1.07 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.1517, allocations: 68.94 kB / 0.5875 GB, free: 1 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.402e-05/0.1517, allocations: 4 kB / 0.5875 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003252/0.1521, allocations: 131.2 kB / 0.5876 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.533e-06/0.1521, allocations: 0 / 0.5876 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.000666/0.1528, allocations: 263.3 kB / 0.5879 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.152e-05/0.1528, allocations: 89.09 kB / 0.5879 GB, free: 492 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.286e-05/0.1529, allocations: 132.4 kB / 0.5881 GB, free: 352 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.531e-05/0.153, allocations: 37.7 kB / 0.5881 GB, free: 308 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.952e-05/0.153, allocations: 96.08 kB / 0.5882 GB, free: 208 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.326e-05/0.1531, allocations: 19.73 kB / 0.5882 GB, free: 188 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.847e-05/0.1531, allocations: 29.72 kB / 0.5882 GB, free: 152 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.1532, allocations: 322.8 kB / 0.5886 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001925/0.1534, allocations: 63.95 kB / 0.5886 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.1536, allocations: 71.89 kB / 0.5887 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003208/0.1539, allocations: 177.9 kB / 0.5888 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.154, allocations: 4 kB / 0.5889 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000484/0.1544, allocations: 264.9 kB / 0.5891 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.677e-05/0.1545, allocations: 67.39 kB / 0.5892 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.1545, allocations: 4 kB / 0.5892 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.1545, allocations: 0 / 0.5892 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.1546, allocations: 15.98 kB / 0.5892 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.1547, allocations: 0 / 0.5892 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001548/0.1548, allocations: 19.97 kB / 0.5892 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.1548, allocations: 7.938 kB / 0.5892 GB, free: 15.09 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.0001098/0.155, allocations: 155.4 kB / 0.5894 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.118e-05/0.155, allocations: 11.91 kB / 0.5894 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.209e-05/0.155, allocations: 16.61 kB / 0.5894 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.155, allocations: 0 / 0.5894 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.155, allocations: 4 kB / 0.5894 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.155, allocations: 0 / 0.5894 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001422/0.1552, allocations: 197.6 kB / 0.5896 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.1552, allocations: 0 / 0.5896 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.417e-05/0.1553, allocations: 19.92 kB / 0.5896 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.1553, allocations: 0 / 0.5896 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.1553, allocations: 4 kB / 0.5896 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1553, allocations: 0 / 0.5896 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1553, allocations: 4 kB / 0.5896 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004569/0.1558, allocations: 246.6 kB / 0.5898 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.858e-05/0.1559, allocations: 84.95 kB / 0.5899 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.707e-05/0.1559, allocations: 7.984 kB / 0.5899 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.156, allocations: 23.98 kB / 0.59 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.1562, allocations: 35.95 kB / 0.59 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.1562, allocations: 0 / 0.59 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.353e-05/0.1562, allocations: 103.2 kB / 0.5901 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1562, allocations: 7.938 kB / 0.5901 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002027/0.1565, allocations: 23.98 kB / 0.5901 GB, free: 14.05 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.0007255/0.1572, allocations: 0.7858 MB / 0.5909 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004684/0.1577, allocations: 258.7 kB / 0.5911 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.1577, allocations: 0 / 0.5911 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002401/0.1579, allocations: 151.3 kB / 0.5913 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002106/0.1581, allocations: 19.03 kB / 0.5913 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002159/0.1603, allocations: 1.753 MB / 0.593 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002387/0.1606, allocations: 0.6888 MB / 0.5937 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.802e-05/0.1606, allocations: 11.97 kB / 0.5937 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.272e-05/0.1607, allocations: 23.42 kB / 0.5937 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.1607, allocations: 4 kB / 0.5937 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3468/0.5075, allocations: 2.586 MB / 0.5962 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002241/0.5078, allocations: 199 kB / 0.5964 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.595/2.103, allocations: 4.062 kB / 0.5964 GB, free: 7.457 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)