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.0009919/0.0009917, allocations: 91.53 kB / 15.06 MB, free: 1.098 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.001221/0.001221, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.582/1.582, allocations: 223.3 MB / 240 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.001/1.001, allocations: 135.3 MB / 426.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003542/0.0003543, allocations: 9.344 kB / 0.5071 GB, free: 5.012 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2124/0.2127, allocations: 82.32 MB / 0.5875 GB, free: 2.871 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.002175/0.215, allocations: 1.176 MB / 0.5886 GB, free: 1.684 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009492/0.2159, allocations: 431.3 kB / 0.589 GB, free: 1.258 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.665e-05/0.216, allocations: 0 / 0.589 GB, free: 1.258 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.606e-05/0.2161, allocations: 3.938 kB / 0.589 GB, free: 1.254 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.385e-05/0.2162, allocations: 15.91 kB / 0.589 GB, free: 1.238 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000238/0.2164, allocations: 35.91 kB / 0.5891 GB, free: 1.203 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001664/0.2166, allocations: 79.77 kB / 0.5891 GB, free: 1.125 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.2168, allocations: 12.17 kB / 0.5892 GB, free: 1.113 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.2169, allocations: 39.89 kB / 0.5892 GB, free: 1.074 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001096/0.217, allocations: 35.83 kB / 0.5892 GB, free: 1.039 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.163e-05/0.2171, allocations: 8 kB / 0.5892 GB, free: 1.031 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.16e-05/0.2171, allocations: 4 kB / 0.5892 GB, free: 1.027 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.842e-05/0.2172, allocations: 11.94 kB / 0.5892 GB, free: 1.016 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.132e-05/0.2172, allocations: 33.7 kB / 0.5893 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001317/0.2174, allocations: 56.16 kB / 0.5893 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.2174, allocations: 0 / 0.5893 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.2174, allocations: 0 / 0.5893 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.2174, allocations: 0 / 0.5893 GB, free: 0.9219 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.000846/0.2183, allocations: 442.5 kB / 0.5898 GB, free: 440 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/0.2183, allocations: 12.03 kB / 0.5898 GB, free: 428 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.395e-05/0.2184, allocations: 34.56 kB / 0.5898 GB, free: 384 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.414e-05/0.2185, allocations: 15.84 kB / 0.5898 GB, free: 368 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002533/0.2187, allocations: 198.8 kB / 0.59 GB, free: 128 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/0.2188, allocations: 8 kB / 0.59 GB, free: 120 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.774e-05/0.2188, allocations: 8 kB / 0.59 GB, free: 112 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004222/0.2192, allocations: 117.6 kB / 0.5901 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.2192, allocations: 0 / 0.5901 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.113e-05/0.2193, allocations: 8 kB / 0.5901 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.2193, allocations: 0 / 0.5901 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004088/0.2197, allocations: 103.9 kB / 0.5902 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007574/0.2205, allocations: 340.7 kB / 0.5906 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003979/0.2209, allocations: 122.5 kB / 0.5907 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002357/0.2211, allocations: 80.94 kB / 0.5908 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.2212, allocations: 0 / 0.5908 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000427/0.2216, allocations: 127.3 kB / 0.5909 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=6): time 3.857e-06/0.2216, allocations: 4 kB / 0.5909 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0009443/0.2226, allocations: 303.1 kB / 0.5912 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.691e-05/0.2227, allocations: 85.11 kB / 0.5913 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001507/0.2228, allocations: 137.1 kB / 0.5914 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.054e-05/0.2229, allocations: 29.7 kB / 0.5914 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.335e-05/0.223, allocations: 92.14 kB / 0.5915 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.316e-05/0.223, allocations: 23.73 kB / 0.5915 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.407e-05/0.223, allocations: 7.938 kB / 0.5915 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.2232, allocations: 318.8 kB / 0.5918 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002475/0.2235, allocations: 71.94 kB / 0.5919 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000221/0.2237, allocations: 71.95 kB / 0.592 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002562/0.224, allocations: 115.3 kB / 0.5921 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.224, allocations: 0 / 0.5921 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0006482/0.2246, allocations: 276.9 kB / 0.5923 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.733e-05/0.2247, allocations: 67.39 kB / 0.5924 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.2247, allocations: 0 / 0.5924 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.2248, allocations: 0 / 0.5924 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.2249, allocations: 19.92 kB / 0.5924 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.2249, allocations: 4 kB / 0.5924 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001992/0.2251, allocations: 35.92 kB / 0.5925 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.086e-05/0.2252, allocations: 4 kB / 0.5925 GB, free: 13.42 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 ($whenCondition1,numReq.y,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002323/0.2254, allocations: 156.2 kB / 0.5926 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.526e-05/0.2255, allocations: 11.91 kB / 0.5926 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.046e-05/0.2255, allocations: 8.375 kB / 0.5926 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.2255, allocations: 0 / 0.5926 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.2255, allocations: 0 / 0.5926 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.321e-06/0.2256, allocations: 7.984 kB / 0.5926 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00032/0.2259, allocations: 197.6 kB / 0.5928 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.2259, allocations: 0 / 0.5928 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.226, allocations: 15.98 kB / 0.5929 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.226, allocations: 0 / 0.5929 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.524e-05/0.226, allocations: 8 kB / 0.5929 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.2261, allocations: 4.234 kB / 0.5929 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.2261, allocations: 4 kB / 0.5929 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007801/0.2269, allocations: 266.5 kB / 0.5931 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.703e-05/0.2269, allocations: 89.05 kB / 0.5932 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.264e-05/0.227, allocations: 11.94 kB / 0.5932 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001681/0.2272, allocations: 27.97 kB / 0.5932 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/0.2273, allocations: 35.95 kB / 0.5933 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.2274, allocations: 4 kB / 0.5933 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.621e-05/0.2275, allocations: 99.27 kB / 0.5934 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2275, allocations: 0 / 0.5934 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003081/0.2278, allocations: 20 kB / 0.5934 GB, free: 12.36 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001052/0.2289, allocations: 0.8053 MB / 0.5942 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006392/0.2295, allocations: 274.7 kB / 0.5944 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2295, allocations: 4 kB / 0.5944 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003356/0.2299, allocations: 147.3 kB / 0.5946 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/0.2302, allocations: 15.98 kB / 0.5946 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001972/0.2322, allocations: 0.7979 MB / 0.5954 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004719/0.2327, allocations: 0.6926 MB / 0.5961 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.924e-05/0.2328, allocations: 12.17 kB / 0.5961 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.327e-05/0.2328, allocations: 19.44 kB / 0.5961 GB, free: 9.449 MB / 0.4981 GB Notification: Performance of SimCode: time 9.21e-07/0.2329, allocations: 0 / 0.5961 GB, free: 9.449 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01725/0.2501, allocations: 2.502 MB / 0.5985 GB, free: 7.129 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003872/0.2505, allocations: 176.5 kB / 0.5987 GB, free: 6.895 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.907/2.158, allocations: 4.062 kB / 0.5987 GB, free: 6.891 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/linux/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) Environment - environmentSimulation: